An Inset Zoom-In Panel
Halewood Reporting has a chart whose interesting part is all at the end. Most of the run barely moves, and on one axis fitted to the whole run the closing stretch is a few pixels tall. A small extra panel is therefore placed inside the main one, showing just the later readings at their own scale — a magnified corner rather than a second chart alongside. The caption lists exactly which readings that corner covers, so nobody has to guess where the magnified stretch begins.
Task: Print the readings in the later half of the run, in the order they were given. The later half begins at position n // 2 with positions counted from 0, where // discards any remainder — so when the number of readings is odd, the middle reading belongs to the earlier half and is not listed.
Input
The first line holds an integer n, the number of readings. Each of the next n lines holds one reading, possibly with decimals. n is at least 1.
Output
One line holding the listed readings separated by single spaces, each printed as Python prints the number it read: thirty comes out as 30.0 and two and a quarter as 2.25, neither rounded nor padded.
Example:
Input:
4
10
20
30
40
Output:
30.0 40.0
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in