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

PROGRAMMING:Simple address book

Luz5年前 (2021-05-10)题库450
Program input integer n, and then enter the name and telephone number of n students. Finally, the output is in the form of table.
###Input format:
The first line is integer n (n < 100), and the next line is n students' names (no more than 20 characters without spaces) and telephone numbers (no more than 20 characters without spaces).
###Output format:
See the example, output strictly according to the sample format.
###Input example:
```in
three
AAAAABBBBBCCCCCDDDDD 13000001234
Yulong 13666667777
Gaoyuhang 18601105886
```
###Output example:
```out
+---------------------------------------------+
| name | phone |
+----------------------+----------------------+
| AAAAABBBBBCCCCCDDDDD | 13000001234 |
+----------------------+----------------------+
| Yulong | 13666667777 |
+----------------------+----------------------+
| Gaoyuhang | 18601105886 |
+---------------------------------------------+
```







answer:If there is no answer, please comment