No.908 Ushitapunichiakun String
問題文最終更新日: 2019-10-18 20:49:00
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 228
(順位表)
の他の問題:
Problem Statement
You are given a string $S$ consisting of lowercase English letters and half-width spaces.
If all odd-positioned characters of $S$ are lowercase English letters and all even-positioned characters are half-width spaces, $S$ is called an Ushitapunichiakun string.
Determine whether $S$ is an Ushitapunichiakun string.
Input
$S$
- The string $S$ is given on $1$ line.
- $S$ consists of lowercase English letters and half-width spaces, and its first and last characters are lowercase English letters.
- The length of $S$ is between $2$ and $100$, inclusive.
Output
Print Yes if $S$ is an Ushitapunichiakun string, and No otherwise.
Sample
Sample 1
Input
u s h i t a p u n i c h i a k u n
Output
Yes
Sample 2
Input
van emde boas tree
Output
No
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
たぴちゃん
ei1333333