제출 #284152

#제출 시각아이디문제언어결과실행 시간메모리
284152Ozy게임 (IOI14_game)C++17
0 / 100
1 ms384 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; #define lli long long int #define rep(i,a,b) for (lli i = (a); i <= (b); i++) lli arr[1502],N; void initialize(int n) { N = n; rep(i,0,n-1) arr[i] = n - 1; } int hasEdge(int u, int v) { arr[u]--; arr[v]--; if (arr[u] == N-2 && arr[v] == N-2) return 1; else if (arr[u] == 0 || arr[v] == 0) return 1; else return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...