結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,096 KB
testcase_01 AC 15 ms
8,064 KB
testcase_02 AC 15 ms
8,096 KB
testcase_03 AC 14 ms
8,124 KB
testcase_04 AC 15 ms
8,088 KB
testcase_05 AC 15 ms
8,084 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 15 ms
8,056 KB
testcase_09 WA -
testcase_10 AC 15 ms
8,248 KB
testcase_11 WA -
testcase_12 AC 14 ms
8,088 KB
testcase_13 WA -
testcase_14 AC 15 ms
8,096 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 14 ms
8,084 KB
testcase_18 AC 15 ms
8,040 KB
testcase_19 AC 15 ms
8,020 KB
testcase_20 AC 14 ms
8,020 KB
testcase_21 AC 15 ms
8,088 KB
testcase_22 AC 14 ms
8,240 KB
testcase_23 WA -
testcase_24 AC 15 ms
8,240 KB
testcase_25 AC 15 ms
8,020 KB
testcase_26 AC 15 ms
8,164 KB
testcase_27 AC 15 ms
8,084 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 15 ms
8,300 KB
testcase_31 AC 14 ms
8,192 KB
testcase_32 WA -
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

str = input()[::-1]
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