提交记录 5423


用户 题目 状态 得分 用时 内存 语言 代码长度
yyfcpp 1003. 测测你的二分查找 Accepted 100 321.77 us 12 KB C++ 219 B
提交时间 评测时间
2018-08-22 13:10:05 2020-08-01 00:16:58
#include <algorithm>
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 OKScore: N/A

Testcase #1321.77 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-05-07 14:37:08 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用