提交记录 5560
| 提交时间 |
评测时间 |
| 2018-08-29 23:53:32 |
2020-08-01 00:19:29 |
#include <algorithm>
#include <map>
using namespace std;
int binary_search(const unsigned *a, int n, unsigned x)
{
static map <unsigned, int> num = {{~0, n}};
if (num.count(x))
return num[x];
return num[x] = lower_bound(a + num.lower_bound(x) -> second, a + num.upper_bound(x) -> second, x) - a;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 32.51 us | 24 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-11 16:46:41 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠