Submission #167818

#TimeUsernameProblemLanguageResultExecution timeMemory
167818itglWeighting stones (IZhO11_stones)C++14
0 / 100
2 ms376 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int case1=0,case2=0; for(int i=1;i<=n;i++){ int w,c; cin >> w >> c; if(c==1)case1+=w; else case2+=w; if(case1<case2) cout << '<' << '\n'; else if(case1>case2) cout << '>' << '\n'; else cout << '?' << '\n'; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...