제출 #1067392

#제출 시각아이디문제언어결과실행 시간메모리
1067392golf게임 (IOI14_game)C++17
0 / 100
1 ms348 KiB
#include <bits/stdc++.h>
using namespace std;

int asked[1000] = {0};

void initialize(int n) {}

int hasEdge(int u, int v) {
    if (u < v) swap(u, v);

    if (asked[u] == u) {
        return 1;
    } else {
        asked[u]++;
        return 0;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...