Submission #651521

# Submission time Handle Problem Language Result Execution time Memory
651521 2022-10-19T08:09:31 Z auresol Hotter Colder (IOI10_hottercolder) C++14
50 / 100
621 ms 7972 KB
#include "grader.h"

int HC(int N){

   //cin >> NN >> TT;
   int l = 1;
   int r = N;

   while(l != r){
      int mid = (l+r)/2;
      Guess(l);
      int determine = Guess(r);
      //cout << "l : " << l << " ,r : " << r << " determine : " << determine << "\n"; 

      if(determine == 0){
         //cout << mid;
         return mid;

      }else if(determine == 1){
         l = mid+1;

      }else{
         r = mid;

      }
   }

   //cout << l;
   return l;
   
}
# Verdict Execution time Memory Grader output
1 Correct 22 ms 1236 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 23 ms 1272 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 25 ms 1276 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 621 ms 7972 KB Output isn't correct - alpha = 0.000000000000