Submission #876449

#TimeUsernameProblemLanguageResultExecution timeMemory
876449aykhnGame (IOI14_game)C++17
100 / 100
233 ms18340 KiB
#include "game.h"
#include <bits/stdc++.h>
 
// author : aykhn
 
using namespace std;
typedef long long ll;
 
#define pb push_back
#define pf push_front
#define ins insert
#define mpr make_pair
#define all(v) v.begin(), v.end()
#define bpc __builtin_popcountll
#define pii pair<ll, ll>
#define pll pair<ll, ll>
#define fi first
#define se second
#define infll 0x3F3F3F3F3F3F3F3F
#define inf 0x3F3F3F3F
 
int c[1500];
 
void initialize(int N)
{
  	for (int i = 0; i < N; i++) c[i] = i;
}
 
int hasEdge(int u, int v)
{
    return !(--c[max(u, v)]);
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...