# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
975586 | vjudge1 | Trol (COCI19_trol) | C++17 | 1088 ms | 600 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;
#define ll long long
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
int q; cin >> q;
pair<ll, ll>lr;
for(int i = 0; i < q; i++){
cin >> lr.first >> lr.second;
int ans = 0;
for(ll j = lr.first; j <= lr.second ; j++){
ans += j%9;
}
cout << ans << endl;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |