Submission #1082555

# Submission time Handle Problem Language Result Execution time Memory
1082555 2024-08-31T15:30:28 Z aaaaaarroz Hotter Colder (IOI10_hottercolder) C++17
0 / 100
486 ms 100352 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-1)/2))/2;
      }
      else if(res==-1){
         r=((l+r-1)/2);
         r--;
      }
      else if(res==1){
         l=((l-1+r)/2);
         l++;
      }
   }
   return (pivot+((l+r-1)/2)/2);
}
# Verdict Execution time Memory Grader output
1 Incorrect 31 ms 14420 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 14428 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 28 ms 14416 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 486 ms 100352 KB Output isn't correct - alpha = 0.000000000000
2 Halted 0 ms 0 KB -