#K68802. Find the Shortest Word Length

    ID: 32945 Type: Default 1000ms 256MiB

Find the Shortest Word Length

Find the Shortest Word Length

Given a sentence consisting of words separated by spaces, find the length of the shortest word. The length of a word is defined as the number of characters it contains, i.e., ( |word| ). For example, in the sentence "An apple a day", the shortest word is "a" with length 1.

inputFormat

A single line containing a sentence. The sentence may include multiple words separated by spaces.

outputFormat

An integer representing the length of the shortest word in the input sentence.## sample

Word
4