fork download
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int main() {
  5. double S=0;
  6. int k,t;
  7. cin >>k>>t;
  8. for(int i=1;i<=k;i++){
  9. for(int j=1;j<=t;j++){
  10. S+=sin(i*i*i+j*j*j*j);
  11. }
  12. }
  13. cout << S;
  14. return 0;
  15. }
Time limit exceeded #stdin #stdout 15s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty