제출 #1087906

#제출 시각아이디문제언어결과실행 시간메모리
1087906LilPluton돌 무게 재기 (IZhO11_stones)C++14
0 / 100
1 ms348 KiB
#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 timeMemoryGrader output
Fetching results...