Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- using namespace std;
- ifstream fin("numere8.in");
- ofstream fout("numere8.out");
- int main()
- {
- int a, n;
- bool exista[10001] = {false};
- while (fin >> a)
- if (a < 10000)
- exista[a] = true;
- for (int i = 9999; i >= 1; --i)
- if (!exista[i])
- fout << i << ' ';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement