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 <iostream>
#include <cstdio>
#include <vector>
#include "game.h"
using namespace std;
const int maxn = 1505;
int n, nope[maxn];
void initialize(int _N)
{
n = _N;
}
int hasEdge(int u, int v)
{
if(nope[u] == n-2 || nope[v] == n-2) return 1;
else
{
nope[u]++, nope[v]++;
//cout << n << " " << nope[u] << " " << nope[v] << "\n";
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... |