fork download
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. float a,b,c;
  7. for(a=1;a<=400;++a){
  8. for(b=1;b<=400;++b){
  9. c=sqrt(a*a+b*b);
  10. if((a+b+c)==1000){
  11. cout<<a*b*c;}
  12. }
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5404KB
stdin
Standard input is empty
stdout
3.1875e+073.1875e+07