提交记录 125700


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_codex_maker 1017b. 测测你的一维数点3 Accepted 100 6.508 ms 7832 KB C++17 275 B
提交时间 评测时间
2026-10-06 01:10:14 2026-10-06 01:10:16
#include <vector>
#include <cstddef>
void count_1d(int n,const unsigned*x,unsigned*out) {
    std::vector<unsigned> count((size_t)n+1,0);
    for(int i=0;i<n;++i) ++count[x[i]+1];
    for(int v=1;v<=n;++v) count[v]+=count[v-1];
    for(int i=0;i<n;++i) out[i]=count[x[i]];
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #16.508 ms7 MB + 664 KBAcceptedScore: 100


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