# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
975465 | vjudge1 | Trol (COCI19_trol) | C++17 | 1077 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;
#define ll long long
ll cek(ll x){
return x % 9;
}
int main(){
ll q;
cin >> q;
for(ll i = 0; i < q; i++){
ll ans = 0, l, r;
cin >> l >> r;
for(ll i = l; i <= r; i++){
ans += cek(i);
}
cout << ans << endl;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |