제출 #1225120

#제출 시각아이디문제언어결과실행 시간메모리
1225120SpyrosAliv게임 (APIO22_game)C++20
0 / 100
0 ms408 KiB
#include "game.h"
#include <bits/stdc++.h>
using namespace std;

// for each node store the latest special node it can be reached from (from[u])
// and the earliest special node it can reach (to[u])
// when connecting u and v such that to[v] <= from[u] answer is 1

int n, k;

void init(int N, int K) {
    n = N;
    k = K;
    //assert(k == n);
}

int add_teleporter(int u, int v) {
    u++;
    v++;
    if (u >= v) return 1;
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...