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 <cmath>
#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> v2i;
#define pb push_back
#define rep(i, n) for (int i=0; i<n; i++)
int i = 0;
int r = 0;
int tricount = 0;
int nontcount = 0;
void initialize(int n) {
r = n*(n-1) / 2;
}
int hasEdge(int u, int v) {
i++;
if (v<u) swap(u,v);
if (u == 0) {
nontcount++;
return nontcount == 3;
} else {
tricount++;
return tricount != 1;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |