fork(2) download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6. int n = 2147483647;//it's prime number!
  7. int sqr = sqrt(n);
  8. while (sqr * sqr > n) sqr--;
  9. while (sqr * sqr < n) sqr++;
  10. if(sqr * sqr == n) cout << "Square";
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 4276KB
stdin
Standard input is empty
stdout
Square