This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "game.h"
#include <cstring>
using namespace std;
int cnt[1505];
void initialize(int n) {
memset(cnt, 0, sizeof(cnt));
}
int hasEdge(int u, int v) {
if (v > u)
return ++cnt[v] == v;
return ++cnt[u] == u;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |