Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77448 sh25_shenpy 涂盘子 C++ 解答错误 0 MS 244 KB 374 2025-12-25 21:56:04

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int s[m]; bool c[n]; fill(c,c+n,1); for(int i=0;i<m;++i){ cin>>s[i]; } sort(s,s+m); for(int iy=0;iy<m;++iy){ if(s[iy]==s[iy+1]) c[iy]=0; } for(int u=0;u<n;++u){ if(c[u]==1) cout<<u+1<<" "; } return 0; }


测评信息: