#include <bits/stdc++.h>
using namespace std;
int HC(int n) {
int l = 1, r = n, mid;
int last = n;
cout << n;
int res;
cin >> res;
while(false) {
mid = (l + r) >> 1;
int g;
cout << mid;
cin >> g;
if(g == 1) {
r = mid;
} else if(g == -1) {
l = mid;
} else {
return (last - mid) / 2;
}
last = mid;
}
return n;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
30 ms |
23528 KB |
잘못된 접근입니다. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
30 ms |
23436 KB |
잘못된 접근입니다. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
31 ms |
23632 KB |
잘못된 접근입니다. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
383 ms |
148944 KB |
잘못된 접근입니다. |
2 |
Halted |
0 ms |
0 KB |
- |