fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. long long a;
  6.  
  7. int main()
  8. {
  9. ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  10. cin >> a;
  11. if ((long long)(sqrt(a)) == sqrt(a))
  12. cout << "YES";
  13. else
  14. cout << "NO";
  15. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
YES