# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1255027 | ipeksoysal | Trol (COCI19_trol) | C++20 | 1096 ms | 328 KiB |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n, a, b, top;
cin >> n;
for(int i=0; i<n; i++){
top=0;
cin>> a >> b;
for(int y=b; y>=a; y--){
if(y%9==0)
top += 9;
else
top += y%9;
}
cout << top << "\n";
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |