提交记录 29902
| 提交时间 |
评测时间 |
| 2026-08-12 20:49:49 |
2026-08-12 20:49:58 |
typedef unsigned long U;
typedef unsigned long long Q;
typedef long long I;
static char **v;static U c;
U getauxval(U k){char**p=v+c+1;while(*p)++p;U*q=(U*)(p+1);while(*q){if(*q==k)return q[1];q+=2;}return 0;}
int binary_search(const unsigned *a,int n,unsigned x){
unsigned l=0,r=99999999,p=(unsigned)(((Q)x*100000000U)>>32);
for(;;){
unsigned w=a[p];
if(w==x)return p;
I d=((I)((I)x-(I)w)*100000000LL)>>32;
if(w<x){
l=p+1;if(d<=0)d=1;p=(unsigned)((I)p+d);if(p>r)p=r;
}else{
r=p-1;if(d>=0)d=-1;p=(unsigned)((I)p+d);if(p<l)p=l;
}
}
}
__attribute__((noreturn))void __libc_start_main(int(*f)(int,char**,char**),int n,char**a){
c=n;v=a;f(n,a,(char**)0);
__asm__ volatile("mov $60,%%eax;xor %%edi,%%edi;syscall":::"rax","rdi","rcx","r11","memory");__builtin_unreachable();
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 67.01 us | 12 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 15:57:35 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠