Submission #754492

# Submission time Handle Problem Language Result Execution time Memory
754492 2023-06-07T21:48:59 Z ValiAntonie Hotter Colder (IOI10_hottercolder) C++14
0 / 100
562 ms 31476 KB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
 
 
int HC(int n){
    int st = 1;
    int dr = n;
    while(st <= dr){
        Guess(st);
        int x = Guess(dr);
        int mij = (st + dr) / 2;
        if(x == 0)
            return mij;
        else if(x == 1){
            st = mij + 1;
        }
        else if(x == -1){
            dr = mij - 1;
        }
    }
    return st;
}
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 4180 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 4112 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 23 ms 4084 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 562 ms 31476 KB Output isn't correct - alpha = 0.000000000000