提交记录 1557
| 提交时间 |
评测时间 |
| 2018-06-20 21:48:36 |
2020-07-31 20:52:04 |
int binary_search(const unsigned *a, int n, unsigned x)
{
const unsigned *b[2] = {a, a + n};
do
{
const unsigned *mid = (unsigned *)(((int)b[0] + (int)b[1]) / 2);
b[*mid > x] = mid;
}
while (b[0] + 1 != b[1]);
return b[0] - a;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 1 ms | 8 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-24 04:10:44 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠