제출 #868846

#제출 시각아이디문제언어결과실행 시간메모리
868846AtabayRajabli동굴 (IOI13_cave)C++17
0 / 100
155 ms508 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] ^= 1; } answer(ans, d); }

컴파일 시 표준 에러 (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...