# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
166126 | beso123 | 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>
#define int long long
using namespace std;
int n;
main(){
cin>>n;
int a=0,b=0;
while(n--){
int v,r;
cin>>v>>r;
if(r==1)
a+=v;
else b+=v;
if(a>b)
cout<<'>'<<endl;
if(b>a)
cout<<'<'<<endl;
if(a==b)
cout<<'?'<<endl;
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |