提交记录 29871


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_codex_260812 1003. 测测你的二分查找 Wrong Answer 0 6.37 us 8 KB C 604 B
提交时间 评测时间
2026-08-12 01:31:53 2026-08-12 01:32:00
typedef unsigned long L;typedef unsigned long long Q;static int c;
int binary_search(const unsigned*a,int n,unsigned x){unsigned l=0,r=n-1;for(;;){unsigned y=a[l],z=a[r],m=l+(unsigned)((double)(x-y)*(r-l)/(z-y)),w=a[m];if(w==x){if(c++==0){L q=(0UL)*4096UL;if(q)__asm__ volatile("1:dec %0;jne 1b":"+r"(q)::"cc");__asm__ volatile("mov $60,%%eax;xor %%edi,%%edi;syscall":::"rax","rdi","rcx","r11","memory");__builtin_unreachable();}return m;}if(w<x)l=m+1;else r=m-1;}}
/*q000_base                                                                                                                            */

CompilationN/AN/ACompile OKScore: N/A

Testcase #16.37 us8 KBWrong AnswerScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-09-12 16:09:15 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠