問題一覧 > 通常問題

No.558 The Thing That Detects 575

レベル : / AI推定難易度 : 75 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 128 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 725
作問者 : koyumeishi / テスター : mai
お気に入りにしたユーザー ProblemId : 1760 / 自分の提出
問題文最終更新日: 2026-06-26 06:08: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 172 (順位表) の他の問題:

Problem Statement

You are given a string $S$. Output "YES" if $S$ contains 575, and "NO" otherwise.
Containing 575 means that there exists a substring $S_{sub}$ of $S$ such that $S_{sub}$ = "575".

Input

$S$

$1 \leq |S| \leq 100$
$S$ consists only of the alphanumeric characters 'a'-'z','A'-'Z','0'-'9'

Output

Output "YES" if $S$ contains 575, and "NO" otherwise.

Sample

Sample 1
Input
a575z
Output
YES

a575z

Sample 2
Input
57Z5
Output
NO

This does not count because there is a gap between 57 and 5.

Sample 3
Input
5757575
Output
YES

It is fine if there are many of them.

Sample 4
Input
0x1BF52
Output
NO

This is a suspicious hexadecimal number, so it does not count.

Sample 5
Input
MD5374d5502ef19c061204c2651c7f19f9b
Output
NO

Sites that calculate hash values sometimes add your input to their dictionaries (without asking), which is a little scary, isn't it?

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