# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1087906 | LilPluton | Weighting stones (IZhO11_stones) | C++14 | 1 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>
using namespace std;
#define int ll
#define ll long long
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, 1, -1};
const int sz = 1e5 + 5;
signed main(){
int n;
cin >> n;
int mx1 = 0, mx2 = 0;
for(int i = 0; i < n; ++i){
int k, x;
cin >> k >> x;
if(x == 1){
mx1 += k;
}else{
mx2 += k;
}
if(mx1 > mx2){
cout << ">" << endl;
}
if(mx1 < mx2){
cout << "<" << endl;
}
if(mx1 == mx2){
cout << '?' << endl;
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |