結果

問題 No.653 E869120 and Lucky Numbers
ユーザー skii
提出日時 2018-02-24 09:34:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 124 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-10-12 20:04:25
合計ジャッジ時間 2,244 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
if s[0]=='1' and s[-1] in '234' and all(2<=int(d)-1<=4 for d in s[1:-1]):
    print('Yes')
else:
    print('No')
0