제출 #1240595

#제출 시각아이디문제언어결과실행 시간메모리
1240595Jer동굴 (IOI13_cave)C++20
33 / 100
125 ms528 KiB
#include "cave.h" #include <bits/stdc++.h> using namespace std; void exploreCave(int n) { int s[n], d[n], used[n]; for (int i = 0; i < n; i++) s[i] = 0, d[i] = -1, used[i] = false; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (used[j]) continue; int one = tryCombination(s); s[j] = 1; int two = tryCombination(s); if (one != two and (one == i or two == i)) { used[j] = true; d[j] = i; s[j] = one == i ? 1 : 0; break; } s[j] = 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...