提交记录 5838
| 用户 |
题目 |
状态 |
得分 |
用时 |
内存 |
语言 |
代码长度 |
| bzy |
1003. 测测你的二分查找 |
Time Limit Exceeded |
0 |
1 ms |
8 KB |
C++ |
447 B |
| 提交时间 |
评测时间 |
| 2018-09-03 22:12:15 |
2020-08-01 00:35:21 |
int binary_search(const unsigned *line, int ub, unsigned value){
int down = 0;register int up=ub;
while(1){
register int estimate = down +
(up - down) *
(value -line[down]) /
(line[up] - line[down]);
estimate += ( estimate == down );
estimate -= ( estimate == up );
if(line[estimate] == value)return estimate;
(line[estimate] < value?down:up) = estimate;
}
return 0;
}
| 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-11 04:59:20 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠