提交记录 33794
| 提交时间 |
评测时间 |
| 2026-08-14 22:35:13 |
2026-08-14 22:35:30 |
// Probe: pure Fenwick in natural order (WRONG answer, just measures Fenwick time).
static unsigned tree[10000001];
void count_2d(int n, const unsigned *x, const unsigned *y, unsigned *out) {
(void)x;
for (int i = 0; i < n; ++i) {
unsigned s = 0;
for (unsigned j = y[i]; j; j &= j - 1) s += tree[j];
out[i] = s;
for (unsigned j = y[i] + 1; j <= (unsigned)n; j += j & -j) tree[j]++;
}
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 1.375 s | 76 MB + 308 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-09 12:58:58 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠