Submit | All submissions | Best solutions | Back to list |
KIMODIV - Kimo and Divisors |
Kimo loves all sorts of properties of odd numbers. He learned a new algorithm to get all divisors of a certain number.
Help him to determine if a number has odd number of divisors.
Input
t - the number of test cases, then t test cases follows. [t <= 1000]
Each line contains one integer: N [1 <= N <= 109]
Output
For each test case output one line contains "YES" if the given number has odd number of divisors an "NO" otherwise.
Example
Input: 2
4
7 Output: YES
NO
Explanation
In the first case: divisors of 4 are : (1, 2, 4) and the number of divisors is 3 (odd)
In the second case: divisors of 7 are : (1, 7) and the number of divisors is 2 (even)
Added by: | eagle93 |
Date: | 2014-01-23 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |
hide comments
2014-01-25 13:12:12 nikhil_nihal
i m totally agree with @KANISH_THE_VISTA |
|
2014-01-25 13:10:01 Kanish_The_Vista
i think this question is ok for classical problem section |
|
2014-01-23 21:08:01 Mitch Schwartz
Ok, moved to tutorial. |
|
2014-01-23 21:04:32 P_Quantum
Easy..!! |
|
2014-01-23 20:52:29 Jacob Plachta
I agree, this should probably be a tutorial problem. |
|
2014-01-23 19:47:05 abhi
thanxx 2 m17 |
|
2014-01-23 19:31:51 Lakshay Singhal
very easy...for tutorial... |