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.
During a robot invasion, signals are recorded as uppercase letters. Divide them into equal segments (zones) and find which robot wins most zones (frequency-based). Input: Two integers p, n, followed by string s Sample Input: 9 3 AABBCCBAA Sample Output: A Question Input: 24 6 ABBCCDAABBBCCCDDDEEEFFF