Submission #1109698

# Submission time Handle Problem Language Result Execution time Memory
1109698 2024-11-07T10:42:56 Z Anar Weighting stones (IZhO11_stones) C++14
0 / 100
1 ms 336 KB
#include <iostream>
#include <vector>
#include <string>
#include <set>
#include <stack>
#include <queue>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <array>
#include <map>
#include <iterator>

using namespace std;

#define pb push_back
#define ll long long
#define ff first
#define ss second
#define fastio ios_base::sync_with_stdio(false); cin.tie(nullptr);

typedef pair<int,int> pii;
typedef vector<ll> vi;
typedef vector<pii> vii;
typedef vector<vi> vvi;
typedef vector<bool> vb;
typedef vector<vb> vvb;

int n;
int l, r;

void process() {
    cin >> n;
    for (int i = 0; i < n; i++) {
        int w, s;
        cin >> w >> s;
        if (s == 1) l += w;
        else r += w;

        if (l < r) cout << '>' << '\n';
        else if (l > r) cout << '<' << '\n';
        else cout << '?' << '\n';
    }
}

signed main() {
    fastio;
    process();
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -