Submission #1082728

# Submission time Handle Problem Language Result Execution time Memory
1082728 2024-09-01T10:14:19 Z Bors Hotter Colder (IOI10_hottercolder) C++17
0 / 100
479 ms 132180 KB
#include "grader.h"

int HC(int n){

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

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

# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 11868 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 28 ms 11804 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 11912 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 479 ms 132180 KB Output isn't correct - alpha = 0.000000000000
2 Halted 0 ms 0 KB -