#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;
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |