# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
971572 |
2024-04-29T02:42:12 Z |
vjudge1 |
Trol (COCI19_trol) |
C++17 |
|
1000 ms |
348 KB |
#include<bits/stdc++.h>
using namespace std;
int main(){
int q,l,r,count;
cin>>q;
while(q--){
count=0;
cin>>l>>r;
for(int i =l; i<=r;i++){
if(i%9 == 0) count+=9;
else count += (i % 9);
}
cout<<count<<endl;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
4 |
Execution timed out |
1041 ms |
348 KB |
Time limit exceeded |
5 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |