CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Friday, November 11, 2016
Uva 10110 - Light, more light
#
include
<
bits/stdc++.h
>
using
namespace
std
;
int
main
()
{
unsigned
long
n,k;
while
(cin >> n && n ) {
k = (
int
)
sqrt
(n);
if
(k*k==n)
printf
(
"
yes
\n
"
);
else
printf
(
"
no
\n
"
);
}
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment