CodeMan
Home
Uva
AtCoder
Codechef
Codeforce
Hackerrank
LeetCode
Devskill
TopCoder
Spoj
Algorithm
Python3
Hackerearth
Uri
C++
Data Structure
Sunday, September 22, 2019
প্রোগ্রামিং সমস্যা 9 - [৫২ সমস্যা বই] পূর্ণবর্গ সংখ্যা
#include< bits/stdc++.h > using
namespace
std
;
int
main
() {
long
n,tc;
cin >> tc;
while
(tc--){
cin >> n;
long
int
d =
sqrt
(n);
if
(d*d == n) cout <<
"
YES
"
<< endl;
else
cout <<
"
NO
"
<< endl;
}
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment