Submission #41025

#TimeUsernameProblemLanguageResultExecution timeMemory
41025baactreeHotter Colder (IOI10_hottercolder)C++14
50 / 100
748 ms8248 KiB
#include "grader.h" int HC(int N){ int le, ri, mid; le = 1; ri = N; while (le < ri){ int mid = (le + ri) / 2; int a = Guess(le); int b = Guess(ri); if (!b) return (le + ri) / 2; if (b == 1) le = mid + 1; else ri = mid; } return le; }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:9:7: warning: unused variable 'a' [-Wunused-variable]
   int a = Guess(le);
       ^
hottercolder.cpp:4:14: warning: unused variable 'mid' [-Wunused-variable]
  int le, ri, mid;
              ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...