[Add] solved solutions

This commit is contained in:
2023-03-02 20:59:51 +07:00
parent 48081e0a05
commit 5499ac06c2
42 changed files with 1480 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#include <iostream>
using namespace std;
void xu_ly(int n)
{
bool mang[n + 1] = {0}, t, i;
for (i = 0; i < n; i++)
{
cin >> t;
mang[t] = 1;
}
for (i = 1; i <= n; i++)
{
if (!mang[i])
{
cout << i << " ";
}
}
//cout << '\b';
}
int main()
{
int n;
cin >> n;
xu_ly(n);
return 0;
}