結果
| 問題 |
No.842 初詣
|
| コンテスト | |
| ユーザー |
rythem00359
|
| 提出日時 | 2020-08-15 22:49:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 148 bytes |
| コンパイル時間 | 117 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-11 02:40:19 |
| 合計ジャッジ時間 | 1,644 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
v=[500,100,50,10,5,1]
c=[*map(int,input().split())]
for i in range(len(v)):
c[-1]-=min(c[i],c[-1]//v[i])*v[i]
print('YES' if c[-1]==0 else 'NO')
rythem00359