1915: Books of Personal Collection

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:34 解决:20

题目描述

In object-oriented programming, an attribute of one class can be an array of objects of another class. For example, the Person class can contain an array of objects of the Book class, which means that a certain Person object has several books. Now there is the Person class, which contains attributes: name sex age, and several books book[] owned Where book[] is an array of objects of class Book The Book class contains attributes: book title, ISBN number, and price.


输入

There are multiple groups of question input, and each group has several lines. There are data items in the first row of each group , which respectively represent name, gender, and age. Then a positive integer indicates the number of books he owns. Next is rows of data, each row has data items, namely the book title, ISBN number and price. 

输出

Output information about books owned by someone, sorted by price (with decimal places) from highest to lowest. See the example for the output format.

样例输入 复制

YuHua male 48 
1
living 968889701120 36.5
LuXun male 89
2
NaHan 101010101010 200
KuangRenRiJi 102102102102 365.35

样例输出 复制

YuHua, male, 48 years old, his books:
"living" (ISBN: 968889701120), price 36.50.
LuXun, male, 89 years old, his books:
"KuangRenRiJi" (ISBN: 102102102102), price 365.35.
"NaHan" (ISBN: 101010101010), price 200.00.