提交记录 5831
| 提交时间 |
评测时间 |
| 2018-09-03 22:03:04 |
2020-08-01 00:34:56 |
inline const binary_search(int *line,const int ub,const int value){
int down = 0;register int up=ub;
while(1){
register int estimate = down +
(long long)(up - down) *
(long long)(value -line[down]) /
(line[up] - line[down]);
if(estimate == down) ++ estimate ;
if(estimate == up ) -- estimate ;
if(line[estimate] == value)return estimate;
(line[estimate] < value?down:up) = estimate;
}
return 0;
}
| Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-11 05:02:20 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠