← November 2025 questions

NOVEMBER 2025 / BEGINNER / QUESTION 3

Median of Sensor Readings

Archived question

Try the question in your own editor, then check your output below.

THE QUESTION

Text from the official booklet. Refer to the PDF for original mathematical notation, formatting, and linked input files. Printed samples and inputs are reproduced as published.

A robot collects 100 sensor readings. Compute the median. If even count: median =
average of the two middle values.
Readings = [42, 17, 93, 58, 21, 76, 39, 88, 65, 14, 27, 91, 33, 50, 84,
7, 99, 12, 36, 62, 18, 47, 55, 68, 73, 29, 81, 24, 37, 90, 16, 45, 59,
74, 28, 61, 80, 10, 86, 35, 53, 97, 19, 41, 64, 32, 49, 71, 23, 56, 38,
66, 79, 11, 83, 20, 48, 67, 15, 52, 85, 31, 63, 9, 78, 25, 43, 70, 30,
57, 22, 60, 77, 13, 82, 26, 46, 69, 34, 54, 87, 40, 51, 75, 8, 89, 44,
72, 6, 92, 5, 96, 3, 95, 2, 94, 1, 98, 4, 100, 61, 33, 55, 12, 67, 23,
81, 17, 39, 29, 76, 41, 53, 14, 69, 19, 84, 7, 45, 88]
Find the median in this array of readings

CHECK YOUR ANSWER

Try your answer.

The printed count is inaccurate: there are 120 supplied entries. This check uses all of them.

Run your program in your own editor, then paste its output below. This checks the stated output; it does not assess your full program. Practice attempts do not affect competition scores.

Use the question input above. Enter only the output.

Reveal worked answer

Your output

49.5

Sort all 120 supplied readings, then average the two middle entries.

Source: Girls in Code SEA 2025 Fall Competition, 29 November 2025. Booklet created by Emily Xu and the GIC question authors. Shared for non-commercial educational use with attribution, as permitted in the booklet.