제출 #297557

#제출 시각아이디문제언어결과실행 시간메모리
297557peti1234Game (IOI14_game)C++17
100 / 100
560 ms18636 KiB
#include <bits/stdc++.h> using namespace std; const int c=1502; int db[c], cnt, n; bool v[c], e[c][c]; bool hasEdge(int a, int b) { if (v[b]) swap(a, b); if (!v[a]) { e[a][b]=1, e[b][a]=1; return 0; } if (db[b]!=cnt) { db[b]++; return 0; } v[b]=1, cnt++; for (int i=0; i<n; i++) db[i]+=e[b][i]; return 1; } void initialize(int w) { n=w, v[0]=1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...