[Add] solved solutions

This commit is contained in:
tiennm99 committed 2023-03-02 20:59:51 +07:00
1 parent 48081e0a05
commit 5499ac06c2
42 files changed
+1480

No files matched your search

+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;
}