2 solutions
- 1
Information
- ID
- 1769
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 10
- Tags
- (None)
- # Submissions
- 4
- Accepted
- 1
- Uploaded By
正确题解:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin>>a;
int b[20]={};
for(int i=0;i<a;i++)
{
int c;
cin>>c;
b[c-1]=1;
}
for(int i=0;i<20;i++)if(b[i]==0)cout<<i+1<<" ";
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.