提交记录 707


用户 题目 状态 得分 用时 内存 语言 代码长度
frf 1003. 测测你的二分查找 Compile Error 0 0 ns 0 KB C 311 B
提交时间 评测时间
2018-06-20 16:28:12 2020-07-31 20:41:55
#include <bits/stdc++.h>
using namespace std;
int binary_search(const unsigned *a,const int n, unsigned x)
{
	register unsigned int l = 0, r = 99999999;
	for(;;) {
#define mid ((l + r) >> 1)
		if ( a[mid] == x ) return mid;
		else if (a[mid] > x ) r = mid - 1;
		else l = mid + 1;
	}
}
int main() {
	return 0;
}

CompilationN/AN/ACompile ErrorScore: N/A


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