Judge (2)

To solve this exercise. use the same definitions of problem P14343.

Write a program that reads the submissions done in the Judge, and prints the following information:

Input

Input consists of a natural nn, followed by nn submissions, each one in a line, with the fields in the same order than in the definition of the type. Suppose that there are, at most, 20 students, 50 exercises, and 1000 submissions.

Output

Your program must print the name of the 5 previously said exercises with the corresponding counters, following the format of the instance.

Observation

This exercise is quite long. To compensate, it is not necessary that the sent solution is particularly efficient.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:16:46.523Z

© Jutge.org, 2006–2026.
https://jutge.org