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

PROGRAMMING:Find the longest string

Luz5年前 (2021-05-10)题库414
This problem requires the preparation of procedures for the input of N strings, the output of which the longest string.
###Input format:
Enter the first line to give a positive integer n; Then n lines, each line gives a length of less than 80 non empty string, which will not appear newline, space, tab.
###Output format:
Output the longest string on one line in the following format:
```
The longest is: the longest string
```
If the length of the string is the same, the first input string is output.
###Input example:
```in
five
li
wang
zhang
jin
xiang
```
###Output example:
```out
The longest is: zhang
```






answer:If there is no answer, please comment