Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
10915 D班-陈颖钧 A+B ProblemIX C++ 解答错误 0 1 MS 264 KB 434 2025-05-25 15:07:08

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int i,n,a[1000],j,b[1000],m; int main(){ cin>>n; for(i=1;i<=n;i++){ m=0; for(j=1;j<=6;j++){ cin>>a[j]; } for(j=1;j<=6;j++){ b[a[j]]++; if(a[j]>m){ m=a[j]; } } for(j=1;j<=m;j++){ if(b[j]>0){ cout<<j<<' '; } } cout<<endl; } }


测评信息: