# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
976470 | vjudge1 | Trol (COCI19_trol) | C++17 | 1069 ms | 348 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()
{
int Q;
cin >> Q;
while(Q--)
{
long long count=0;
long long L, R;
cin >> L >> R;
for (long long i = L; i<=R; i++)
{
count += (i % 9);
}
cout << count << endl;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |