fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main(){
  5. int f=0;
  6.  
  7. for(int i=1;i<=563654;i++){
  8. if(i%2!=0){
  9. f=f+i;
  10. }
  11. }
  12. cout<<f;
  13.  
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5308KB
stdin
99 11
stdout
2117046601