# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
163296 | tselmegkh | Weighting stones (IZhO11_stones) | C++14 | 3 ms | 504 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;
long long sum[3] = {0, 0, 0};
for(int i = 0; i < n; i++){
int r, s;
cin >> r >> s;
sum[s] += r;
if(sum[1] > sum[2]){
cout << ">\n";
}else if(sum[1] < sum[2]){
cout << "<\n";
}else{
cout << "?\n";
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |