제출 #542891

#제출 시각아이디문제언어결과실행 시간메모리
542891Vladth11Game (IOI14_game)C++14
0 / 100
1 ms232 KiB
#include <bits/stdc++.h>
#include "game.h"
#define debug(x) cerr << #x << " " << x << "\n"
#define debugs(x) cerr << #x << " " << x << " "
 
using namespace std;
typedef long long ll;
typedef pair <int, int> pii;
typedef pair <long double, pii> muchie;
 
const ll NMAX = 5001;
const ll VMAX = 1000001;
const ll INF = (1LL << 60);
const ll MOD = 1000000007;
const ll BLOCK = 1000000;
const ll base = 13137;
const ll nr_of_bits = 16;
 
int cnt[NMAX];
int N;
 
void initialize(int n) {
    N = n;
    for(int i = 0; i < N; i++) cnt[i] = 0;
}
 
int hasEdge(int u, int v) {
    cnt[u]++;
    cnt[v]++;
    if(max(cnt[v], cnt[u]) == N - 2){
        return 1;
    }else{
        return 0;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...