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

PROGRAMMING:Input and display of address book

Luz5年前 (2021-05-10)题库544
A record in the address book contains the following basic information: a friend's name, date of birth, gender, fixed phone number, and mobile phone number.
This problem requires the preparation of procedures, input $$n $$records, and display any record according to the requirements.
###Input format:
Enter the positive integer $$n $$($$Le $$10) in the first line; The next $$n $$line, each line gives a record according to the format of 'name, birthday, gender, fixed line mobile phone'. Where 'name' is a non empty string with no more than 10 characters and no spaces; The date of birth is given in the format of 'yyyy / mm / DD'; Gender uses'm 'for "male" and' f 'for "female"` Both fixed line and mobile phones are consecutive numbers with no more than 15 digits, and "+" may appear in front of them.
After entering the address book record, the last line gives a positive integer, $$k $$, followed by an integer, $$k $$, indicating the record number to be queried (from 0 to $$n-1 $$). Numbers are separated by spaces.
###Output format:
For each record number to be queried, output the record in the format of 'name, fixed phone, gender, birthday' in one line. If the record to be queried does not exist, output 'not found'.
###Input example:
```in
three
Chris 1984/03/10 F +86181779452 13707010007
LaoLao 1967/11/30 F 057187951100 +8618618623333
QiaoLin 1980/01/01 M 84172333 10086
2 1 7
```
###Output example:
```out
LaoLao 057187951100 +8618618623333 F 1967/11/30
Not Found
```






answer:If there is no answer, please comment