提交记录 738


用户 题目 状态 得分 用时 内存 语言 代码长度
frf 1003. 测测你的二分查找 Compile Error 0 0 ns 0 KB C 302 B
提交时间 评测时间
2018-06-20 16:46:08 2020-07-31 20:42:17
int binary_search(const unsigned *a,const int n, unsigned x)
{
	static const unsigned a = 0;
	static const unsigned b = 99999999;
	register unsigned l = a, r = b;
	for(;;) {
		register unsigned mid = l + r >> 1;
		if ( a[mid] == x ) return mid;
		if ( a[mid] > x ) r = mid - 1;
		else l = mid + 1
	}
}

CompilationN/AN/ACompile ErrorScore: N/A


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