Submission #1314576

#TimeUsernameProblemLanguageResultExecution timeMemory
1314576michael12Weighting stones (IZhO11_stones)C++20
0 / 100
0 ms336 KiB
#include<bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define int long long
using namespace std;
const int maxn = 5e5;
const int md = 998244353;
signed main() {
    int t;
    cin >> t;
    int cur = 0, ans = 0;
    while(t--){
        int n, m;
        cin >> n >> m;
        if(m == 1){
            cur += n;
        }
        else{
            ans += n;
        }
        if(cur == ans){
            cout << "?" << endl;
        }
        else if(cur > ans){
            cout << ">" << endl;
        }
        else{
            cout << "<" << endl;
        }
        
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...