# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
975356 | vjudge1 | Trol (COCI19_trol) | C++17 | 1093 ms | 420 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 <iostream>
using namespace std;
#define ll long long
int memo[1000];
int main() {
int t;
cin>>t;
for(int i=0;i<t;i++){
ll l,r,temp=0,cnt=0;
cin>>l>>r;
for(int j=l;j<=r;j++){
if(j%9==0){
temp+=9;
}
else{
temp+=(j%9);
}
}
cout<<temp<<"\n";
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |