Uva 10110 Solution

#include<bits/stdc++.h>
#define ll unsigned long long int
using namespace std;
int main()
{
    ll n;
    while(cin >> n && n > 0)
    {
        if(sqrt(n) == (int)sqrt(n))
            cout << "yes" << endl;
        else
            cout << "no" << endl;
    }

    return 0;
}

Comments