# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
166126 | 2019-11-30T21:02:43 Z | beso123 | Weighting stones (IZhO11_stones) | C++14 | 2 ms | 376 KB |
#include <bits/stdc++.h> #define int long long using namespace std; int n; main(){ cin>>n; int a=0,b=0; while(n--){ int v,r; cin>>v>>r; if(r==1) a+=v; else b+=v; if(a>b) cout<<'>'<<endl; if(b>a) cout<<'<'<<endl; if(a==b) cout<<'?'<<endl; } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 376 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |