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;
int qtd, a, b;
bool dif;
void initialize(int n)
{
}
int hasEdge(int u, int v)
{
qtd++;
if (qtd == 1)
{
a = u, b = v;
return 1;
}
if (u != a && u != b && v != a && v != b)
{
dif = 1;
return 1;
}
if (dif) return 0;
else if (qtd == 5) return 1;
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... |