| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1347994 | duduh | 동굴 (IOI13_cave) | C++17 | 154 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 b=1;
for(int j=0;j<N;j++) s[j] = ((s2[j] == -1) ? !b : s2[j]);
if(tryCombination(s) != i) b=!b;
for(int j=0;j<N;j++){
for(int k=0;k<N;k++) s[k] = (s[k] == -1) ? ((k&(1<<j)) ? b : !b) : s2[k];
if(tryCombination(s) != i) id |= (1<<j);
}
s2[id] = b;
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... | ||||
