# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
115194 | ly20 | Game (IOI14_game) | C++14 | 2 ms | 384 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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;
}
}
컴파일 시 표준 에러 (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... |