fork(1) download
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. long long t;
  7. long long r;
  8.  
  9. t=975265754974037100ll;
  10. cout.precision(21);
  11. r=sqrt(t+0.5);
  12. cout<<r<<" "<<r*r<<" "<<t-r*r<<endl;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
987555444 975265754974037136 -36