提交记录 5422


用户 题目 状态 得分 用时 内存 语言 代码长度
yyfcpp 1003. 测测你的二分查找 Compile Error 0 0 ns 0 KB C++ 198 B
提交时间 评测时间
2018-08-22 13:09:39 2020-08-01 00:16:55
int binary_search(const unsigned *a, int n, unsigned x)
{
//	for(int i = 0; i < n; i++)
//		if(a[i] == x)
//			return i;
//	return 233;
    return std::distance(a, std::lower_bound(a, a + n, x));
}

CompilationN/AN/ACompile ErrorScore: N/A


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