結果
問題 |
No.653 E869120 and Lucky Numbers
|
ユーザー |
![]() |
提出日時 | 2018-02-24 09:51:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 218 bytes |
コンパイル時間 | 1,119 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-12 20:27:00 |
合計ジャッジ時間 | 2,011 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 WA * 3 |
ソースコード
s = input() r = 'No' if s[-1] in '234': for i in range(len(s)-1)[::-1]: if s[i] not in '345': break if s[i]=='1' or s[i] in '87' and all(d in '67' for d in s[:i]): r = 'Yes' print(r)