제출 #774856

#제출 시각아이디문제언어결과실행 시간메모리
774856JomnoiHotter Colder (IOI10_hottercolder)C++17
0 / 100
508 ms156980 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; int HC(int N){ int l = 1, r = N, ans = -1; while (l <= r) { int mid = (l + r) / 2; int res1 = Guess(mid), res2 = Guess(mid + 1); if (res1 == 1) l = mid + 1; else r = mid - 1, ans = mid; } return ans; }

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

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:10:32: warning: unused variable 'res2' [-Wunused-variable]
   10 |         int res1 = Guess(mid), res2 = Guess(mid + 1);
      |                                ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...