Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
240 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int mas[109] = {}, K;
	cin >> K;
	int a;
	for (int i = 1; i <= K; i++) {
		cin >> a;
		mas[a] = 1;
	}
	for (int i = 1; i <=K+1; i++)
	{
		if (mas[i] == 0) cout << i;
	}
}
Leave a Comment