Submission #163296

#TimeUsernameProblemLanguageResultExecution timeMemory
163296tselmegkhWeighting stones (IZhO11_stones)C++14
0 / 100
3 ms504 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; long long sum[3] = {0, 0, 0}; for(int i = 0; i < n; i++){ int r, s; cin >> r >> s; sum[s] += r; if(sum[1] > sum[2]){ cout << ">\n"; }else if(sum[1] < sum[2]){ cout << "<\n"; }else{ cout << "?\n"; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...