Cod sursa(job #2706927)

Utilizator crismariuCrismariu Codrin crismariu Data 16 februarie 2021 09:25:01
Problema Hashuri Scor 0
Compilator cpp-64 Status done
Runda Arhiva educationala Marime 0.73 kb
#include <bits/stdc++.h>
//#pragma GCC optimize("O3")
#define test " test "
#define ll long long
#define pii pair<int, int>
#define FASTIO   \
    cin.tie(0);  \
    cout.tie(0); \
    ios_base::sync_with_stdio(0);
#define FILES                      \
    freopen("hashuri.in", "r", stdin); \
    freopen("hashuri.out", "w", stdout);
#define testcase             \
    int T;    \
    cin >> T; \
    while (T--)
#define vec vector<int>
using namespace std;

signed main()
{
    map <int, int> m;
    testcase{
        int x, y;
        scanf("%d%d", &x, &y);
        if(x == 1)
            m[y] = 1;
        else if(x == 2)
            m[y] = 0;
        else
            printf("%d\n", m[y]);
    }
    return 0;
}