Submission #1083085

#TimeUsernameProblemLanguageResultExecution timeMemory
1083085erdemfurkanCave (IOI13_cave)C++14
25 / 100
9 ms568 KiB
#include "cave.h" #include <algorithm> void exploreCave(int N) { int combination[N]; int S[N]; int D[N]; for(int i = 0; i < N; i++) { combination[i] = 0; } // Hepsi açık if(tryCombination(combination) == -1) { for(int i = 0; i < N; i++) { S[i] = 0; } for(int i = 0; i < N; i++) { combination[i] = 1; int x = tryCombination(combination); D[i] = x; combination[i] = 0; } answer(S, D); } else { for(int i = 0; i < N; i++) { S[i] = 1; } for(int i = 0; i < N; i++) { D[i] = i; } for(int i = 0; i < N; i++) { combination[i] = 1; int x = tryCombination(combination); if(x == i) { S[i] = 0; combination[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...