結果

問題 No.653 E869120 and Lucky Numbers
ユーザー wagashi1349wagashi1349
提出日時 2018-04-24 16:30:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 369 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 8,316 KB
最終ジャッジ日時 2023-09-09 23:35:17
合計ジャッジ時間 1,906 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,092 KB
testcase_01 AC 15 ms
8,088 KB
testcase_02 AC 15 ms
8,240 KB
testcase_03 AC 15 ms
8,080 KB
testcase_04 AC 15 ms
8,092 KB
testcase_05 AC 14 ms
8,084 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 15 ms
8,200 KB
testcase_09 AC 14 ms
7,784 KB
testcase_10 AC 15 ms
7,856 KB
testcase_11 AC 15 ms
7,908 KB
testcase_12 AC 14 ms
8,196 KB
testcase_13 AC 15 ms
7,840 KB
testcase_14 AC 14 ms
8,096 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 14 ms
8,196 KB
testcase_18 AC 14 ms
8,228 KB
testcase_19 AC 15 ms
8,216 KB
testcase_20 AC 14 ms
8,168 KB
testcase_21 AC 14 ms
8,160 KB
testcase_22 AC 14 ms
8,216 KB
testcase_23 WA -
testcase_24 AC 14 ms
8,092 KB
testcase_25 AC 14 ms
8,088 KB
testcase_26 AC 15 ms
8,236 KB
testcase_27 AC 14 ms
8,016 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 14 ms
8,120 KB
testcase_31 AC 14 ms
8,080 KB
testcase_32 AC 14 ms
7,796 KB
testcase_33 AC 14 ms
7,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

str = input()
if len(str) == 1:
    print("No")
    exit(0)

a = int(str[0] + str[1])
if not (a >= 13 and a <= 15):
    print("No")
    exit(0)

for num in range(len(str)-2) :
    a = int("1" + str[num+1])
    if not (a >= 13 and a <= 15):
        print("No")
        exit(0)

a = int("1" + str[-1])
if not (a >= 12 and a <= 14):
    print("No")
else:
    print("Yes")
0