Missing numbers
Task
The program reads a number n and on the next line numbers from 1 to n separated by spaces - some may repeat and some are missing (the line may also be empty). It prints the missing numbers in ascending order, separated by spaces. If nothing is missing, it prints nič nechýba (nothing is missing).
For n = 10 and the line 3 1 7 3 10 2 the program prints 4 5 6 8 9.
Examples
Input
10 3 1 7 3 10 2
Expected output
4 5 6 8 9
After you submit, 5 hidden tests will also check your solution: nothing missing, n = 1, one number repeated, an empty line, all of them, shuffled.
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.