Submission #976470

# Submission time Handle Problem Language Result Execution time Memory
976470 2024-05-06T15:12:36 Z vjudge1 Trol (COCI19_trol) C++17
0 / 50
1000 ms 348 KB
#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
1 Incorrect 1 ms 344 KB Output isn't correct
2 Incorrect 1 ms 348 KB Output isn't correct
3 Incorrect 1 ms 348 KB Output isn't correct
4 Execution timed out 1069 ms 348 KB Time limit exceeded
5 Execution timed out 1051 ms 348 KB Time limit exceeded