Submission #544339

# Submission time Handle Problem Language Result Execution time Memory
544339 2022-04-01T18:43:47 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++17
0 / 100
417 ms 157008 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;

int HC(int n){
    int st = 1;
    int dr = n;
    while(st <= dr){
        int mij = (st + dr) / 2;
        int x = Guess(mij);
        if(x == 0)
            return mij;
        else if(x == 1)
            st = mij + 1;
        else
            dr = mij - 1;
    }
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 17740 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 17808 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 27 ms 17804 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 417 ms 157008 KB Output isn't correct - alpha = 0.000000000000