結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-07 16:57:52 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 606 bytes |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-15 05:18:32 |
| 合計ジャッジ時間 | 1,523 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
ソースコード
import sys
sys.setrecursionlimit(1000000)
def debug(*args, **kwd):
import os
if os.getenv('DEBUG'): print(*args, **kwd, file=sys.stderr)
def input():
return sys.stdin.readline()[:-1]
def main(_=0):
print(["NO", "YES"][input().count('575') > 0])
def as_input(s: str) -> None:
import io
global input
f = io.StringIO(s)
input = lambda: f.readline().rstrip()
return None
sample1 = """a575z
"""
sample2 = """57Z5
"""
def test():
"""
>>> main(as_input(sample1))
YES
>>> main(as_input(sample2))
NO
"""
pass
if __name__ == '__main__':
main()