Submission #869069

#TimeUsernameProblemLanguageResultExecution timeMemory
869069AtabayRajabliCave (IOI13_cave)C++17
0 / 100
149 ms508 KiB
#include "cave.h" void exploreCave(int n) { int q = 0; int a[n], ans[n], d[n]; for(int i = 0; i<n; i++) { a[i] = 0; ans[i] = 0; d[i] = 0; } int j = 0; while(j < n) { int q = tryCombination(a); for(; j<q; j++) { ans[j] = a[j]; d[j] = j; } if(j < n)a[j] ^= 1; } answer(ans, d); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:4:6: warning: unused variable 'q' [-Wunused-variable]
    4 |  int q = 0;
      |      ^
#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...