제출 #136505

#제출 시각아이디문제언어결과실행 시간메모리
136505mlyean00Game (IOI14_game)C++14
0 / 100
2 ms380 KiB
#include "game.h"

#include <bits/stdc++.h>

using namespace std;

vector<int> deg;
void initialize(int n) {
    deg = vector<int>(n, n - 1);
}

int hasEdge(int u, int v) {
    int ans = min(deg[u], deg[v]) == 1;
    --deg[u];
    --deg[v];
    return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...