結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2021-05-31 23:53:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 312 bytes |
コンパイル時間 | 269 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-09 00:00:36 |
合計ジャッジ時間 | 1,233 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
L = int(input()) M = int(input()) N = int(input()) res = 0 if N >= 25: res_n, mod_n = divmod(N, 25) M += res_n res += mod_n else: res += N if M >= 4: res_m, mod_m = divmod(M, 4) L += res_m res += mod_m else: res += M if L >= 10: res += L % 10 else: res += L print(res)