fork download
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4. int main()
  5. {
  6. long long k ;
  7. int len;
  8. cin>>k;
  9. //k = 1000000;
  10. len = pow(k, 0.2);
  11. k = k - pow(len, 5);
  12. cout<<k<<endl<<endl;
  13. }
  14.  
Success #stdin #stdout 0s 3300KB
stdin
1000000
stdout
240625