Submission #586839

#TimeUsernameProblemLanguageResultExecution timeMemory
586839Red_InsideGame (IOI14_game)C++17
100 / 100
294 ms14820 KiB
/* This is sample grader for the contestant */
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define f first
#define s second
#define all(v) v.begin(), v.end()
#define IOS ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0);
#define mp make_pair
#define o cout<<"BUG"<<endl;
#define FOR(i, j, n) for(int j = i; j < n; ++j)
#define forn(i, j, n) for(int j = i; j <= n; ++j)
#define nfor(i, j, n) for(int j = n; j >= i; --j)
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

const int maxn = 2e5+100;

int inf = 1e9;

int cnt[maxn];

void initialize(int n) 
{
	
}


int hasEdge(int u, int v) 
{
	return (++cnt[max(u, v)] == max(v, u));
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...