제출 #1347720

#제출 시각아이디문제언어결과실행 시간메모리
1347720Faisal_Saqib돌 무게 재기 (IZhO11_stones)C++20
0 / 100
0 ms344 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;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...