Submission #1082553

# Submission time Handle Problem Language Result Execution time Memory
1082553 2024-08-31T15:29:23 Z aaaaaarroz Hotter Colder (IOI10_hottercolder) C++17
0 / 100
470 ms 72984 KB
#include "grader.h"

int HC(int N){
   int l=1,r=N;
   int pivot=1;
   while(l<r){
      Guess(pivot);
      int res=Guess((l+r)/2);
      if(res==0){
         return (pivot+((l+r)/2))/2;
      }
      else if(res==-1){
         r=((l+r)/2);
         r--;
      }
      else if(res==1){
         l=((l+r)/2);
         l++;
      }
   }
   return (pivot+((l+r-1)/2)/2);
}
# Verdict Execution time Memory Grader output
1 Incorrect 22 ms 11092 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 21 ms 11096 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 11100 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 470 ms 72984 KB Output isn't correct - alpha = 0.000000000000
2 Halted 0 ms 0 KB -