제출 #64879

#제출 시각아이디문제언어결과실행 시간메모리
64879MatheusLealVGame (IOI14_game)C++17
0 / 100
2 ms672 KiB
#include "game.h"
#include <bits/stdc++.h>
#define N 2000
using namespace std;

int resta[N];

void initialize(int n)
{
	for(int i = 0; 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...