Submission #470755

#TimeUsernameProblemLanguageResultExecution timeMemory
470755PiejanVDC게임 (IOI14_game)C++17
0 / 100
1 ms204 KiB
#include "game.h"
#include <bits/stdc++.h>
using namespace std;

vector<int>cnt;

int hasEdge(int u, int v) {
	if(cnt[u] == 1 && cnt[v] == 1) return 0;
	if(cnt[u] == 1 || cnt[v] == 1) return 1;
	cnt[u]--,cnt[v]--;
	return 0;
}

void initialize(int n) {
	cnt.resize(n);
	for(auto &z : cnt)
		z=n-1;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...