結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2025-03-20 21:00:23 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 5,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 53,536 KB |
最終ジャッジ日時 | 2025-03-20 21:00:42 |
合計ジャッジ時間 | 1,180 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)