結果

問題 No.558 575検出するやつ
コンテスト
ユーザー bellangeldindon
提出日時 2017-08-27 14:47:37
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 242 bytes
記録
コンパイル時間 120 ms
コンパイル使用メモリ 77,628 KB
最終ジャッジ日時 2025-12-04 00:36:00
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def judge(s, i):
	if s[i-2] == '5':
		if s[i-1] == '7':
			if s[i] == '5':
				return True
	return False

s = raw_input()
flag = False
for i in range(2, len(s)):
	if judge(s, i):
		flag = True
		break

if flag:
	print 'YES'
else:
	print 'NO'
0