# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
115194 | ly20 | 게임 (IOI14_game) | C++14 | 2 ms | 384 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>
using namespace std;
#include "game.h"
const int MAXN=1510,MAXL=13;
int v[MAXN][MAXN],v1[MAXL];
void initialize(int n)
{
for(int i=1;i<=n;i++)
{
for(int j=i;j<=n;j++)
{
int k;
for(int l=0;l<MAXL;l++)
{
if((1<<l)&j!=(1<<l)&i)
{
k=l;
break;
}
}
v1[k]++;
v[i][j]=k;v[j][i]=k;
}
}
}
int hasEdge(int a,int b)
{
if(v1[v[a][b]]==1)
{
return 1;
}
else
{
v1[v[a][b]]--;
return 0;
}
}
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... |