結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 18:47:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 5,000 ms |
| コード長 | 284 bytes |
| コンパイル時間 | 280 ms |
| コンパイル使用メモリ | 82,044 KB |
| 実行使用メモリ | 53,120 KB |
| 最終ジャッジ日時 | 2025-03-20 18:47:58 |
| 合計ジャッジ時間 | 1,165 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
L = int(input()) M = int(input()) N = int(input()) # Convert 1-yen to 25-yen q, N = divmod(N, 25) M += q # Convert 25-yen to 100-yen q, M = divmod(M, 4) L += q # Convert 100-yen to 1000-yen (only remainder affects the coin count) L %= 10 # Sum the remaining coins print(L + M + N)
lam6er