# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
975938 | 2024-05-06T03:41:02 Z | vjudge1 | Trol (COCI19_trol) | C++17 | 1 ms | 500 KB |
#include <bits/stdc++.h> #define int long long #define ld long double using namespace std; const int N=1e9; signed main(){ int p=pow(2,60); int angka[p]; for (int i=1;i<=p;i++){ angka[i]=i; } int a; cin>>a; for(int i=0;i<a;i++){ int x,y,ans=0; cin>>x>>y; if(x>y){ return 0; } for(int j=x;j<=y;j++){ int wawo; wawo=angka[j]%9; ans+=wawo; } cout<<ans<<endl; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 348 KB | Execution killed with signal 11 |
2 | Runtime error | 1 ms | 348 KB | Execution killed with signal 11 |
3 | Runtime error | 1 ms | 348 KB | Execution killed with signal 11 |
4 | Runtime error | 1 ms | 348 KB | Execution killed with signal 11 |
5 | Runtime error | 1 ms | 500 KB | Execution killed with signal 11 |