#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 time | Memory | Grader output |
|---|
| Fetching results... |