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 defense system analyses signals in blocks of size n. For each block, it finds the median, then outputs the most frequent median across all blocks. Sample Input: 10 2 3 4 4 4 5 5 1 1 1 1 Sample Output: 1 Question Input: 20 4 3 5 2 8 6 9 9 9 1 4 4 4 5 5 5 5 7 8 8 8