Ensure that you are logged in and have the required permissions to access the test.

Square Number

4

10 votes
Open, Algorithms, Approved, Easy
Problem

Given a number N. Your task is to find out N is Square Number or not.

Square Number is an integer that is the square of an integer, in other words, it is the product of some integer with itself. For example, 16 is a square number, since it can be written as 4 × 4.

Input:
Input contains a single integer N.

Output:
Print YES if N is Square Number else print NO.

Constraints:

Test Files 1 to 5
1<=N<=103

Test Files 6 to 10
1<=N<= 1010

Sample Input #1:
20

Sample Output #1:
NO

Sample Input #2:
36

Sample Output #2:
YES

Sample Input
25

Sample Output
YES
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?