PRF192_-_PE_-_FA_2024_3201.webp
G

PRF192_-_PE_-_FA_2024_3201.webp

  • Media owner Greed94
  • Ngày thêm
PRF192-Examination 01
Problem 3
[3 Points]
Enter a string S which contains alphabets and spaces only, find and print the word with the fewest characters in the string. If there are multiple words with the same minimum length, print the first one that appears.
Input
The first line contains a string S.
Constraint
maximum length 200 characters.
Output
Please print out the word with the fewest characters in the string.
If there are multiple words with the same minimum length, print the first one that appears.
Sample
Input
Output
One
Zoom
Sample 1
This is a sample string
Sample 2
One two three six ten
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRF192
Thêm bởi
Greed94
Ngày thêm
Lượt xem
1,139
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_PE_-_FA_2024_3201.webp
File size
344.9 KB
Dimensions
2880px x 1358px

Share this media

Back
Bên trên Bottom