結果
問題 |
No.653 E869120 and Lucky Numbers
|
ユーザー |
|
提出日時 | 2020-05-13 15:54:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 378 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-14 15:35:23 |
合計ジャッジ時間 | 2,471 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 6 |
ソースコード
MOD = 10 ** 9 + 7 INF = 10 ** 15 def main(): P = [int(a) for a in input()][::-1] num = (2,3,4) flag = True for i in range(len(P) - 1): if P[i] in num: P[i + 1] -= 1 else: flag = False break if flag and P[-1] == 0: print('Yes') else: print('No') if __name__ == '__main__': main()