Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
443812 任虞昊 受欢迎度调查(survey) C++ 通过 100 30 MS 276 KB 424 2026-06-06 22:12:31

Tests(10/10):


#include <iostream> using namespace std; int cnt[1005]; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, m; cin >> n >> m; for (int i = 0; i < m; i++) { int x; cin >> x; cnt[x]++; } for (int i = 1; i <= n; i++) { while (cnt[i]--) { cout << i << " "; } } return 0; }


测评信息: