제출 #709804

#제출 시각아이디문제언어결과실행 시간메모리
709804aryan12Game (IOI14_game)C++17
100 / 100
308 ms9044 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...