| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1347890 | hokorien | 동굴 (IOI13_cave) | C++20 | 176 ms | 516 KiB |
#include "cave.h"
#include <bits/stdc++.h>
using namespace std;
void exploreCave(int N)
{
int s[N], s2[N], d[N];
int K = 31 - __builtin_clz(N);
fill(s2,s2+N,-1);
for (int i = 0; i < N; i++)
{
int id = 0;
bool ch = 1;
for(int j=0;j<N;j++){
s[j] = (s2[j] == -1) ? !ch : s2[j];
}
if(tryCombination(s) != i) ch = !ch;
for(int j =0;j<=K;j++){
for(int k=0;k<N;k++){
s[k] = (s2[k] == -1) ? ((k&(1<<j))? ch : !ch): s2[K];
}
if(tryCombination(s) != i) id |= (1<<j);
}
s2[id] = ch;
d[id] = i;
}
answer(s2,d);
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
