# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
1147771 | | iah | Game (IOI14_game) | C++20 | | 179 ms | 7080 KiB |
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair < int , int >
#define fi first
#define se second
#define FOR(i, a, b) for (int i = (a), _b = (b); i <= _b; i ++)
#define FORD(i, a, b) for (int i = (a), _b = (b); i >= _b; i --)
#define REP(i, n) for (int i = 0, _n = (n); i < _n; i ++)
#define bit(x, i) (((x) >> (i)) & 1ll)
#define mask(x) (1ll << (x))
#define mem(f, x) memset(f, x, sizeof(f))
#define sz(x) (int32_t) (x.size())
vector < int > cnt;
void initialize(int n) {
cnt.resize(n);
}
int hasEdge(int u, int v) {
cnt[max(u, v)] ++;
return (cnt[max(u, v)] == max(u, v));
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |