답안 #72430

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
72430 2018-08-26T08:05:08 Z nvmdava 게임 (IOI14_game) C++17
0 / 100
3 ms 608 KB
#include <bits/stdc++.h>
using namespace std;
int a[1501];
int n;
void initialize(int n)
{
	::n = n;
	for(int i = 0; i < n; i++){
		a[i] = n;
	}
}
int hasEdge(int u, int v)
{
	if(a[u] == 1 || a[v] == 1){
		a[u] = 0;
		a[v] = 0;
		return 1;
	}
	a[u]--;
	a[v]--;
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 3 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 608 KB Output isn't correct
2 Halted 0 ms 0 KB -