제출 #1231561

#제출 시각아이디문제언어결과실행 시간메모리
1231561islam_2010Cave (IOI13_cave)C++20
12 / 100
13 ms516 KiB
#include "cave.h" #include <bits/stdc++.h> using namespace std; int 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; k = tryCombination(s); if(k == -1){ answer(s, d); } } }for(int i = 0; i < n; i++){ s[i] = 1; int k = tryCombination(s); d[i] = k; s[i] = 0; }answer(s, d); }
#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...