Submission #1082727

# Submission time Handle Problem Language Result Execution time Memory
1082727 2024-09-01T10:11:26 Z Bors Hotter Colder (IOI10_hottercolder) C++17
0 / 100
607 ms 136656 KB
#include "grader.h"

int HC(int n){

   int l=1, r=n;
   while(l<r){
      int ac=(l+r)/2;
      Guess(ac);

      int k=Guess((ac+r)/2);
      if(k==0){
         return ((ac)+(ac+r)/2)/2;
      }
      if(k==1){
         l=ac+1;
      }
      if(k==-1){
         r=ac;
      }
   }
   return l;
}

# Verdict Execution time Memory Grader output
1 Incorrect 30 ms 15956 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 30 ms 15952 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 32 ms 15956 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 607 ms 136656 KB Output isn't correct - alpha = 0.000000000000
2 Halted 0 ms 0 KB -