Submission #1074291

# Submission time Handle Problem Language Result Execution time Memory
1074291 2024-08-25T09:25:12 Z clementine Hotter Colder (IOI10_hottercolder) C++17
0 / 100
649 ms 170064 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
int HC(int N){
   int l = 1; 
   int r = N;
   while(l != r)
   {
      int mid = (l + r) / 2;
      int a = Guess(l);
      int b = Guess(r);
      cout << a << " " << b;
      if(a == b)
      {
         return mid;
      }
      else if(b ==1)
      {
         l = mid + 1;
      }
      else
      {
         r = mid;
      }
   }
   return l;
}
# Verdict Execution time Memory Grader output
1 Incorrect 67 ms 18260 KB 잘못된 접근입니다.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 66 ms 18260 KB 잘못된 접근입니다.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 66 ms 18256 KB 잘못된 접근입니다.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 649 ms 170064 KB 잘못된 접근입니다.
2 Halted 0 ms 0 KB -