Square Number
Practice
4 (10 votes)
Open
Algorithms
Approved
Easy
Problem
95% Success 7969 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
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
Submissions
Please login to view your submissions
Similar Problems
Points:20
6 votes
Tags:
MathematicsEasy
Points:20
46 votes
Tags:
Brute-force searchOpenEasyMathamatics
Points:20
1 votes
Tags:
Easy
Editorial