Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- typedef unsigned int ui;
- int main()
- {
- ui b;
- while(1)
- {
- cin>>b;
- if(b==0) break;
- ui count = sqrt(b);
- ui vog = b-count*count;
- vog==0 ? cout<<"yes\n" : cout<<"no\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement