Submission #868845

#TimeUsernameProblemLanguageResultExecution timeMemory
868845AtabayRajabliCave (IOI13_cave)C++17
0 / 100
182 ms348 KiB
#include "cave.h" void exploreCave(int n) { int a[n] = {0}, ans[n] = {0}, d[n] = {0}; int q = 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] ^= a[j]; } answer(ans, d); }

Compilation message (stderr)

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