# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1231555 | islam_2010 | 동굴 (IOI13_cave) | C++20 | 0 ms | 0 KiB |
#include "cave.h"
#include <bits/stdc++.h>
using namespace std;
void tryCombination(int s[]);
void exploreCave(int n){
int d[n], s[n];
for(int i = 0; i <= n; i++){
d[i] = i;
s[i] = 0;
}for(int i = 0; i <= n; i++){
int k = tryCombination(s);
if(k == -1){
answer(s, d);
}else if(k == i){
s[i] = 1;
}
}
}