提交记录 16964
| 提交时间 |
评测时间 |
| 2021-11-12 18:09:33 |
2021-11-12 18:09:36 |
#include <algorithm>
int binary_search(const unsigned *a, int n, unsigned x)
{
int ne = x*0.023283064365386963;
const unsigned *b = std::lower_bound(a+std::max(0,ne-1000), a + std::min(100000000,ne+1000), x);
if(*b==x) return b-a;
return std::lower_bound(a+std::max(0,ne-40000), a + std::min(100000000,ne+40000), x) - a;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 201.41 us | 12 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-18 08:36:28 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠