Donat un natural n pel canal d’entrada,
feu un programa que escrigui per la sortida estàndard
la següent seqüència (de mida n):
1, n, 2, n−1, 3, n−2, 4, n−3, …
Entrada
Un natural n.
Sortida
La seqüència:
1, n, 2, n−1, 3, n−2, 4, n−3, …
de mida n.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.