Submission #691586

#TimeUsernameProblemLanguageResultExecution timeMemory
691586drdilyorWeighting stones (IZhO11_stones)C++17
0 / 100
1 ms212 KiB
#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 timeMemoryGrader output
Fetching results...