Write a program that reads sequences with all the numbers between 1 and but one, and tells which one is missing.
Input consists of several sequences. Every sequence begins with a number between 1 and followed by natural numbers. Every number between 1 and appears exactly once, except one of them, which is missing.
For every sequence, print the missing number.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T12:21:46.163Z
© Jutge.org, 2006–2026.
https://jutge.org