제출 #1347717

#제출 시각아이디문제언어결과실행 시간메모리
1347717Faisal_SaqibWeighting stones (IZhO11_stones)C++20
큐에 대기중
0 ms0 KiB
#include <iostream>
using namespace std;
typedef long long ll;
int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int n;
    cin>>n;
    ll sm[4]={0};
    for(int i=0;i<n;i++)
    {
        int w,t;
        cin>>w>>t;
        sm[t]+=w;
        if(sm[1]==sm[2])cout<<'?'<<endl;
        else cout<<(sm[1]>sm[2]?'>':'<')<<endl;
    }
}