Submission #1012391

# Submission time Handle Problem Language Result Execution time Memory
1012391 2024-07-02T05:35:54 Z huutuan Hotter Colder (IOI10_hottercolder) C++14
0 / 100
10000 ms 24404 KB
#include "grader.h"

int HC(int N){
   int l=1, r=N;
   while (l<=r){
      int mid=(l+r)>>1;
      int t1=Guess(l);
      int t2=Guess(r);
      if (!t2) return mid;
      if (t2==1) l=mid;
      else r=mid;
   }
   return -1;
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:7:11: warning: unused variable 't1' [-Wunused-variable]
    7 |       int t1=Guess(l);
      |           ^~
# Verdict Execution time Memory Grader output
1 Execution timed out 10040 ms 2904 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10083 ms 2908 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10043 ms 2908 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10047 ms 24404 KB Time limit exceeded
2 Halted 0 ms 0 KB -