Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7262 | 吴承熹 | 19买画笔 | C++ | Wrong Answer | 0 MS | 644 KB | 300 | 2025-04-11 20:27:08 |
#include<bits/stdc++.h> #include<cstdio> using namespace std; int main(){ int a[100001]={},n,c; cin>>n; for(int i=1;i<=n;i++){ cin>>c; a[c]++; } for(int i=1;i<=n;i++){ if(a[i]!=2){ cout<<i<<" "; } } return 0; }
------Input------
9 1 1 9 11 5 3 11 5 3
------Answer-----
9
------Your output-----
2 4 6 7 8 9