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 <bits/stdc++.h>
#include "game.h"
using namespace std;
const int N = 3e5+5;
int freq[N];
int n;
void initialize(int nn) {
n = nn;
}
int hasEdge(int u, int v) {
return ((u!=0&&++freq[u] == n-1) || (v!=0&&++freq[v] == n-1));
}
/*
/usr/bin/g++ -o game grader.cpp game.cpp
./game
*/
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |