[Solution] Hello Equation CodeChef Solution 2022
Problem
You are given a positive integer . Your task is to tell whether there exist two positive integers and such that
If there exist positive integers and satisfying the above condition print YES
, otherwise print NO
.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- Each test case consists of single line containing a positive integer .
👇👇👇👇👇
Output Format
For each test case, output on a new line YES
or NO
.
You may print each character of the string in either uppercase or lowercase (for example, the strings yes
, YES
, Yes
, and yeS
will all be treated as identical).
Explanation:
Test case : There do not exist any positive integers and such that .
Test case : Let and , then .
Test case : There do not exist any positive integers and such that .
Test case : Let and , then .
No comments:
Post a Comment