Submission #558498

#TimeUsernameProblemLanguageResultExecution timeMemory
558498Trunkty게임 (IOI14_game)C++14
0 / 100
0 ms212 KiB
#include <iostream>
#include <vector>
#include <algorithm>
#include "game.h"
using namespace std;
typedef long long ll;

#define DEBUG
#ifdef DEBUG
  #define debug(x) cout << #x << ": " << x << endl
#else
  #define debug(x)
#endif

int tot;
bool arr[1505][1505];

void initialize(int n){
	tot = n*(n-1)/2;
}

int hasEdge(int u, int v){
	tot--;
	if(tot or  arr[u][v] or arr[v][u]){
		arr[u][v] = true;
		return 0;
	}
	return 1;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...