求是否为完全平方数,但是数据有点阴!!!!! #include <iostream> #include <cmath> using namespace std; int main() { long long x; while(cin >> x && x) { long long t = (long long)sqrt((double)x); if(t * t == x) cout << "yes" << endl; else cout << "no" << endl; } return 0; }