問題一覧 > 通常問題

No.739 It's Important, So I'll Say It Twice

レベル : / AI推定難易度 : 96 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 587
作問者 : nmnmnmnmnmnmnm / テスター : ciel
お気に入りにしたユーザー ProblemId : 2349 / 自分の提出
問題文最終更新日: 2018-09-05 23:39:06
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 201 (順位表) の他の問題:

Problem Statement

Yuki read a certain string aloud twice in a row, with nothing in between.
Let's check whether she read the same string twice in succession.

Input

$S$

$S$ is a string consisting of lowercase letters. $2 \le S$'s length $\le 20$.

Output

Output "YES" if the same string was read twice in succession.
Otherwise, output "NO".
Print a newline at the end.

Sample

Sample 1
Input
yukicoderyukicoder
Output
YES

She succeeded.

Sample 2
Input
yukicoder
Output
NO

She did not succeed.

Sample 3
Input
aaaa
Output
YES

"aa" was read twice in succession. She succeeded.

Sample 4
Input
aaaaa
Output
NO

She did not succeed.

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