#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 |
- |