# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
971177 | Aika | Weighting stones (IZhO11_stones) | C++14 | 0 ms | 348 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>
#define aiiiii ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
using namespace std;
signed main(){
aiiiii
int n, i, j, r, s;
cin>>n;
int ans1=0,ans2=0;
for(i=0;i<n;i++){
cin>>r>>s;
if(s==1)ans1+=r;
else ans2+=r;
if(ans1>ans2)cout<<'>'<<endl;
else if(ans1<ans2)cout<<'<'<<endl;
else cout<<'?'<<endl;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |