# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
691586 | drdilyor | Weighting stones (IZhO11_stones) | C++17 | 1 ms | 212 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;
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 |
---|---|---|---|---|
Fetching results... |