# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
715815 | Dulguun88 | Trol (COCI19_trol) | C++14 | 1093 ms | 212 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
# include<bits/stdc++.h>
using namespace std;
int main(){
unsigned long long int n,sum=0,m=0;
int a,b;
cin>>n;
while(n--){
cin>>a>>b;
for(int i=a ; i<=b;i++){
m=i;
while(m>0){
sum+=m%10;
m/=10;
}
}
cout<<sum<<endl;
sum=0;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |