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

PROGRAMMING:Find the longest word

Luz5年前 (2021-05-10)题库441
Input an English sentence, the whole English sentence has 4 words, only the last period. Output the longest word. If there are multiple words of the same length, output the first one.
###Input format:
There are four words in an English sentence. There is only one punctuation mark in the whole English sentence.
###Output format:
The longest word in a sentence
###Input example:
```in
i am a boy!
```
###Output example:
```out
boy
```







answer:If there is no answer, please comment