Submission #41331

#TimeUsernameProblemLanguageResultExecution timeMemory
41331ljk0411jgHotter Colder (IOI10_hottercolder)C++14
50 / 100
761 ms8184 KiB
#include "grader.h" int HC(int N) { int l, r, ret1, ret2, mid, result = 1; r = N; l = 1; while (l <= r) { if (l== r) { result = l; break; } ret1 = Guess(r); ret2 = Guess(l); mid = (l + r) / 2; if (ret2 == 0) { result = mid; break; } else if (ret2 == 1) { r = mid; } else { l = mid + 1; } } return result; }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:4:12: warning: variable 'ret1' set but not used [-Wunused-but-set-variable]
  int l, r, ret1, ret2, mid, result = 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...