# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
167818 | itgl | Weighting stones (IZhO11_stones) | C++14 | 2 ms | 376 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;
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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |