제출 #869094

#제출 시각아이디문제언어결과실행 시간메모리
869094AtabayRajabli동굴 (IOI13_cave)C++17
0 / 100
2 ms348 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; } for(int i = 0; i<n; i++) { int q = tryCombination(a); if(q == -1)q = n; for(int j = 0; j<n; j++) { a[j] ^= 1; int k = tryCombination(a); if(k == -1)k = n; if(k < q)d[j] = k; else if(k == q+1) d[j] = k-1; else a[j] ^= 1; } } answer(a, d); }

컴파일 시 표준 에러 (stderr) 메시지

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:4:9: warning: unused variable 'q' [-Wunused-variable]
    4 |     int q = 0;
      |         ^
cave.cpp:5:15: warning: unused variable 'ans' [-Wunused-variable]
    5 |     int a[n], ans[n], d[n];
      |               ^~~
#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...