Submission #1008590

#TimeUsernameProblemLanguageResultExecution timeMemory
1008590hotboy2703Game (IOI14_game)C++14
0 / 100
1 ms440 KiB
#include "game.h"
#include<bits/stdc++.h>
using namespace std;
using ll = int;
#define pll pair <ll,ll>
#define fi first
#define se second
#define MP make_pair
#define sz(a) (ll((a).size()))
#define BIT(mask,i) (((mask) >> (i))&1)
#define MASK(i) (1LL << (i))
ll n;
ll cnt = 0;
void initialize(int N) {
    n=N;
}

int hasEdge(int u, int v) {
    if (cnt == (n-2))return 0;
    cnt+= (abs(u-v)==1);
    return (abs(u-v)==1);
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...