Submission #1077081

# Submission time Handle Problem Language Result Execution time Memory
1077081 2024-08-26T22:27:56 Z boyliguanhan Hotter Colder (IOI10_hottercolder) C++17
50 / 100
367 ms 24400 KB
int Guess(int N);
int HC(int N){
  int l=1,r=N;
  while(l<r){
    int mid=l+r>>1;
    Guess(mid);
    int x=Guess(mid+1);
    if(x<0)
      r=mid;
    else l=mid+1;
  }
  return  l;
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:5:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    5 |     int mid=l+r>>1;
      |             ~^~
# Verdict Execution time Memory Grader output
1 Correct 15 ms 2908 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 15 ms 2908 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 15 ms 1412 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 367 ms 24400 KB Output isn't correct - alpha = 0.000000000000
2 Halted 0 ms 0 KB -