fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. main()
  4. {
  5. int n , i, sum=0;
  6.  
  7. scanf("%d", &n);
  8.  
  9. for(i=3;i<=n;i+2)
  10. {
  11. sum = sum + pow(i,5);
  12. }
  13. printf("%d", sum);
  14.  
  15. return 0;
  16. }
  17.  
Time limit exceeded #stdin #stdout 5s 10320KB
stdin
3
stdout

Standard output is empty