#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; }
Using your lizikid universal account