2 solutions

  • 0
    @ 2026-5-1 17:17:46

    #include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; int c=0; for(int i=a+1;i<b;i++) { if(i%40 and i%100!=0 or i%4000) { c+=i; } } cout<<c; return 0; }

    • 0
      @ 2026-3-14 16:25:51

      #include<bits/stdc+``````+.h> using namespace std; int main() { int n,b; cin>>n>>b; int h=0; for(int i=n+1;i<b;i++) { if(i%40&&i%100!=0) { h+=i; } if(i%4000) { h+=i; } } cout<<h; return 0; }``

      • 1

      Information

      ID
      1155
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      1
      Tags
      (None)
      # Submissions
      200
      Accepted
      40
      Uploaded By