int binary_search(const unsigned *a, int n, unsigned x) { int l=0,r=n-1; while(l<r) { int mid=l+(r-l>>1); if(a[mid]<x)l=mid+1; else r=mid; } return l; }
Judge Duck Online | 评测鸭在线 Server Time: 2024-12-26 17:57:24 | Loaded in 0 ms | Server Status 个人娱乐项目,仅供学习交流使用 | 捐赠