2 solutions

  • 0
    @ 2025-8-29 13:52:51

    #include<bits/stdc++.h> using namespace std; int main(){ int k,l,r; cin>>k>>l>>r; int t=0; for(int i=l;i<=r;i++){ if(i%10k||i%k0){ t+=i; } } cout<<t; return 0; }

    Information

    ID
    1165
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    99
    Accepted
    17
    Uploaded By