제출 #16650

#제출 시각아이디문제언어결과실행 시간메모리
16650eaststar동굴 (IOI13_cave)C++14
0 / 100
48 ms464 KiB
#include "cave.h" int a[5010],b[5010],chk[5010]; void exploreCave(int n){ int i,j,s,e,m,t,p; for(i=0;i<n;++i){ t=tryCombination(a); s=0,e=n-1; while(s<e){ m=(s+e)/2; for(j=s;j<=m;++j)if(!chk[j])a[j]=!a[j]; (p==i)^(t=tryCombination(a)==i)?s=m+1:e=m; } a[s]=!a[s],b[s]=i,chk[s]=1; } answer(a,b); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...