제출 #815814

#제출 시각아이디문제언어결과실행 시간메모리
815814yeysoMinerals (JOI19_minerals)C++14
6 / 100
3 ms208 KiB
#include "minerals.h" void Solve(int N) { //int v = Query(1); int remove = 0; int t = 0; for(int i = 1; i <= N * 2; i ++){ for(int j = i+1; j <= N * 2; j ++){ t = Query(i); t = Query(j); if(t == 1 and i < j) { Answer(i, j); } remove = Query(i); remove = Query(j); } } /*for (int i = 1; i <= N; ++i) { Answer(i, 2 * N + 1 - i); }*/ } /* g++ -std=gnu++17 -O2 -Wall -pipe -static -o minerals grader.cpp minerals.cpp 4 1 5 2 6 3 4 7 8 */

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

minerals.cpp: In function 'void Solve(int)':
minerals.cpp:7:9: warning: variable 'remove' set but not used [-Wunused-but-set-variable]
    7 |     int remove = 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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...