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