제출 #927254

#제출 시각아이디문제언어결과실행 시간메모리
927254vjudge1Hotter Colder (IOI10_hottercolder)C++11
0 / 100
320 ms140628 KiB
#include <bits/stdc++.h> using namespace std; int Guess(int); int HC(int n) { int l = 1, r = n, resL, resR; resL = Guess(l); while(true) { resR = Guess(r); if(resR == 1) l++; else if(resR == -1) r--; else { return (r + l) >> 1; } } }

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

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:7:23: warning: variable 'resL' set but not used [-Wunused-but-set-variable]
    7 |     int l = 1, r = n, resL, resR;
      |                       ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...