# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
428435 | Rouge_Hugo | Game (IOI14_game) | C++14 | 112 ms | 1064 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#include "game.h"
#define ll long long
#define fi first
#define se second
#define pb push_back
using namespace std;
int n;
const int N=100;
int vis[N],yes[N][N];
void dfs(int x)
{
if(vis[x])return;
vis[x]=1;
for(int it=0;it<n;it++)
{
int z=it,zz=x;
if(z>zz)swap(z,zz);
if(yes[z][zz]!=-1)continue;
if(vis[it])continue;
dfs(it);
}
}
void initialize(int N) {
n=N;
memset(yes,-1,sizeof yes);
}
int hasEdge(int x, int y) {
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |