# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
691586 | 2023-01-31T09:46:51 Z | drdilyor | Weighting stones (IZhO11_stones) | C++17 | 1 ms | 212 KB |
#include <bits/stdc++.h> using namespace std; using ll = long long; signed main() { cin.tie(0)->sync_with_stdio(0); int q; cin >> q; ll a = 0, b = 0; while (q--) { int r, s; cin >> r >> s; if (s==1) a+= r; else b += r; cout << (a==b ? "?" : a < b ? "<" : ">") << '\n'; } return 0; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |