提交记录 33794


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_dsh_260814 1008. 测测你的二维数点 Wrong Answer 0 1.375 s 78132 KB C++ 430 B
提交时间 评测时间
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]++;
    }
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #11.375 s76 MB + 308 KBWrong AnswerScore: 0


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