提出 #52572928


ソースコード 拡げる

S = input()
S3 = S[-3:]

ans = 0

for i in range(349):
    if (i+1) != 316:
        num = f"{i+1:03}"
        if num == S3:
          ans = 1

if ans == 1:
  print("Yes")
else:
  print("No")

提出情報

提出日時
問題 A - Past ABCs
ユーザ Sirocco110
言語 Python (PyPy 3.10-v7.3.12)
得点 100
コード長 204 Byte
結果 AC
実行時間 57 ms
メモリ 76752 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 10
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, sample_01.txt, sample_02.txt, sample_03.txt
ケース名 結果 実行時間 メモリ
random_01.txt AC 57 ms 76588 KiB
random_02.txt AC 57 ms 76176 KiB
random_03.txt AC 56 ms 76752 KiB
random_04.txt AC 56 ms 76484 KiB
random_05.txt AC 57 ms 76240 KiB
random_06.txt AC 57 ms 76440 KiB
random_07.txt AC 57 ms 76632 KiB
sample_01.txt AC 57 ms 76460 KiB
sample_02.txt AC 57 ms 76540 KiB
sample_03.txt AC 57 ms 76176 KiB