-->
当前位置:首页 > 题库

PROGRAMMING:Most books

Luz5年前 (2021-05-10)题库423
###Task description
```
Suppose that there are m (10 ≤ m ≤ 999) new books in the library, all of which are edited independently or cooperatively by n (1 ≤ n ≤ 26) authors. Suppose that the number of M books is an integer (1 to 999), and the author's name is a letter ('a 'to'z'). Please find out the author who has participated in editing the most books and his book list according to the book author list.
```
###Input format:
```
The first line is the number of books m, and the other m lines are the information of a book. The first integer is the book number, followed by a space, which is a string composed of capital English letters without repeated characters, and each letter represents an author. Input data to ensure that only one author produces the most books.
```
###Output format:
```
The first line is the author letter with the most books published;
The second is the number of books published by the author;
The rest are the book numbers that the authors participate in (output in order of input).
```
###Input example:
```in
eleven
307 F
895 H
410 GPKCV
567 SPIM
822 YSHDLPM
834 BXPRD
872 LJU
791 BPJWIA
580 AGMVY
619 NAFL
233 PDJWXK
```
###Output example:
```out
P
six
four hundred and ten
five hundred and sixty-seven
eight hundred and twenty-two
eight hundred and thirty-four
seven hundred and ninety-one
two hundred and thirty-three
```
###Title Source
This topic is selected from openjudge website http://noi.openjudge.cn/ch0113/42/







answer:If there is no answer, please comment