제출 #709801

#제출 시각아이디문제언어결과실행 시간메모리
709801raysh07게임 (IOI14_game)C++17
100 / 100
267 ms16408 KiB
#include "game.h"
#include "bits/stdc++.h"
using namespace std;

const int N  = 1569; 
int edges[N];
int n;

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

int hasEdge(int u, int v){
    if (u>v) swap(u, v);  
    u++; v++;
    edges[u]++;
    
    return edges[u] == (n - u);
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...