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 <vector>
#include <iostream>
#include <algorithm>
using namespace std;
vector<int> edges;
void initialize(signed n)
{
edges.resize(n, 0);
}
signed hasEdge(signed u, signed v)
{
edges[max(u, v)]++;
return edges[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... |