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 <bits/stdc++.h>
#define N 2000
using namespace std;
int resta[N];
void initialize(int n)
{
for(int i = 1; i <= n; i++) resta[i] = n - 1;
}
int hasEdge(int u, int v)
{
if(resta[u] == 1 or resta[v] == 1) return 1;
resta[u] --, resta[v] --;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |