Submission #1087906

#TimeUsernameProblemLanguageResultExecution timeMemory
1087906LilPlutonWeighting stones (IZhO11_stones)C++14
0 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define int ll #define ll long long int dx[] = {1, -1, 0, 0}; int dy[] = {0, 0, 1, -1}; const int sz = 1e5 + 5; signed main(){ int n; cin >> n; int mx1 = 0, mx2 = 0; for(int i = 0; i < n; ++i){ int k, x; cin >> k >> x; if(x == 1){ mx1 += k; }else{ mx2 += k; } if(mx1 > mx2){ cout << ">" << endl; } if(mx1 < mx2){ cout << "<" << endl; } if(mx1 == mx2){ cout << '?' << endl; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...