Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
4947 A班-许锘林 A+B ProblemIX C++ 运行出错 0 1 MS 252 KB 472 2025-01-19 14:25:25

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int main() { int l; cin>>l; int n = 6; int a[n]; for(int i = 0;i < l;i++) { for(int j = 0;j < n;j++) { cin>>a[j]; } sort(a,a + n); int b[n] = {0}; for(int k = 0;k < n;k++) { b[a[k]]++; } for(int h = 0;h < n;h++) { if(b[a[h]] == 1) { cout<<a[h]<<" "; } else { cout<<a[h]<<" "; h += b[a[h]] - 1; } } cout<<endl; } return 0; }


测评信息: