Submission #1106387

#TimeUsernameProblemLanguageResultExecution timeMemory
1106387NonbangkokCave (IOI13_cave)C++17
0 / 100
2 ms508 KiB
#include<bits/stdc++.h> #include "cave.h" void exploreCave(int N) { int S[N], D[N], last=-2, start=0, closed; for(int i=0;i<N;i++)S[i]=D[i]=0; while(start!=N){ for(int i=start;i<N;i++){ closed = tryCombination(S); if(closed != last){ D[last] = i; start++; i = start; last = closed; continue; } S[i] = 1; closed = tryCombination(S); if(closed != last){ D[last] = i; start++; i = start; last = closed; continue; } 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...