Submission #868843

#TimeUsernameProblemLanguageResultExecution timeMemory
868843AtabayRajabliCave (IOI13_cave)C++17
0 / 100
187 ms504 KiB
#include "cave.h" void exploreCave(int n) { int a[n] = {0}, ans[n], d[n]; int q = 0; int j = 0; while(j < n) { int q = tryCombination(a); for(; j<q; j++) { ans[j] = a[j]; d[j] = j; } 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...