Submission #1082504

# Submission time Handle Problem Language Result Execution time Memory
1082504 2024-08-31T14:04:28 Z aaaaaarroz Hotter Colder (IOI10_hottercolder) C++17
0 / 100
465 ms 94732 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+r)/2;
      }
      else if(res==-1){
         r=((l+r)/2);
         r--;
      }
      else if(res==1){
         l=((l+r)/2);
         l++;
      }
   }
   return (pivot+r)/2;
}
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 13648 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 13660 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 13720 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 465 ms 94732 KB Output isn't correct - alpha = 0.000000000000
2 Halted 0 ms 0 KB -