제출 #50157

#제출 시각아이디문제언어결과실행 시간메모리
50157Talant게임 (IOI14_game)C++17
0 / 100
3 ms636 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; const int N = (int)1e5 + 5; int nn; int cn[N]; void initialize(int n) { for (int i = 0; i < n; i ++) cn[i] = n - 1; } int hasEdge(int u, int v) { if (cn[u] == 1 || cn[v] == 1) { cn[v] --; cn[u] --; return 1; } else { cn[u] --,cn[v] --; return 0; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...