提交记录 2139
提交时间 |
评测时间 |
2018-06-21 23:42:44 |
2020-07-31 20:59:08 |
int binary_search(const unsigned *a, int n, unsigned x)
{
const unsigned int *p=a+(((unsigned long long)x*100000000)>>32)-0x2c00;
//printf("d=%u x=%u\n",x,d);
for(int i=0x4000;;i>>=1)
{
//printf("p=0x%x a=0x%x p-a=0x%x i=0x%x p+i-a=0x%x\n",p,a,p-a,i,p-a+i);
if(p[i]<=x)p+=i;
if(i==0)return p-a;
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 175.94 us | 12 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-24 02:41:49 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠