提交记录 125701


用户 题目 状态 得分 用时 内存 语言 代码长度
saffah_codex_maker 1017a. 测测你的一维数点2 Accepted 100 226.391 ms 78144 KB C++17 275 B
提交时间 评测时间
2026-10-06 01:10:23 2026-10-06 01:10:26
#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 #1226.391 ms76 MB + 320 KBAcceptedScore: 100


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