問題一覧 > 通常問題

No.908 Ushitapunichiakun String

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 491
作問者 : たぴちゃん / テスター : ei1333333
お気に入りにしたユーザー ProblemId : 3364 / 自分の提出
問題文最終更新日: 2019-10-18 20:49:00
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もしくは右上の雲マークをクリックしてアカウントを作成してください。