問題一覧 > ネタ問題

No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 43
作問者 : googol_S0 / テスター : Ebishu
お気に入りにしたユーザー ProblemId : 4070 / 自分の提出
問題文最終更新日: 2020-06-20 13:15:46
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 April Fool Contest 2020 (順位表) の他の問題:

Problem Statement

Consider performing the following operation on a string $S$ any number of times.
・Choose $1$ lowercase English letter and replace all occurrences of that letter in the string with spaces.
If this can turn the string into the form
$0$ or more spaces + a string of $2$ or more characters whose odd-numbered characters are lowercase English letters and whose even-numbered characters are spaces + $0$ or more spaces
print 'Yes'; otherwise, print 'NO'.

Input

$S$

$\require{cancel}$ $\cancel{1} 0(2020/04/10 15:06更新 テストケースに入力が存在しないものがあったため) \leq \vert S \vert \leq100$
$S$ consists of lowercase English letters and spaces

Output

Print a newline at the end.

Sample

Sample 1
Input
atcoder
Output
Yes

One example is "choose t,o,e and perform the operation".

Sample 2
Input
abcabc
Output
NO

None of 'abcabc',' bc bc','a ca c','ab ab ','a$\ \ $a$\ \ $',' b$\ \ $b ','$\ \ $c$\ \ $c','$\ \ \ \ \ \ $' satisfies the condition.

Sample 3
Input
a ab
Output
Yes

Sample 4
Input
 
Output
NO

The input may consist of only spaces.

Sample 5
Input
u s h i t a p u n i c h i a k u n
Output
Yes

U shi ta pu ni ki a ku n lol

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。