| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1185632 | Mamikonm1 | 동굴 (IOI13_cave) | C++17 | 0 ms | 0 KiB | 
#include "cave.h"
#include<bits//stdc++.h>
using namespace std;
void exploreCave(int N) {
    vector<int>s(N),d(N);
    for(int i=0;i<N;++i){
        if(tryCombination(s)==i){
            for(int j=0;j<N;++j){
                s[j]=1;
                if(tryCombination(s)>i){
                    d[j]=i;
                    break;
                }
            }   
        }
        else{
            for(int j=0;j<N;++j){
                s[j]=1;
                if(tryCombination(s)==i){
                    s[j]=0;
                    d[j]=i;
                    break;
                }
            }
        }
    }
    ans(s,d);
}
