Submission #574420

#TimeUsernameProblemLanguageResultExecution timeMemory
574420talant117408게임 (IOI14_game)C++17
100 / 100
315 ms16308 KiB
#include "game.h"
#include <bits/stdc++.h>

#ifndef EVAL
#include "grader.cpp"
#endif

using namespace std;

int N;

void initialize(int n) {
    N = n;
}

int c[1503];

int hasEdge(int u, int v) {
    if (u < v) swap(u, v);
    auto flag = (c[u] == u-1);
    c[u]++;
    return flag;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...