# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
976460 | 2024-05-06T15:05:14 Z | vjudge1 | Trol (COCI19_trol) | C++17 | 1000 ms | 348 KB |
#include <bits/stdc++.h> using namespace std; int main() { int q; cin>>q; for (int i=0;i<q;i++){ int l,r; cin>>l; cin>>r; cout<<l; for (long long i=l;i<=r;i++){ int p=1000000000; int jawab; int mod; while(i>10){ mod = i%p; jawab += mod; p /= 10; } cout<<jawab; } } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | Output isn't correct |
2 | Execution timed out | 1059 ms | 348 KB | Time limit exceeded |
3 | Incorrect | 0 ms | 344 KB | Output isn't correct |
4 | Execution timed out | 1058 ms | 348 KB | Time limit exceeded |
5 | Incorrect | 0 ms | 348 KB | Output isn't correct |