結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-23 09:39:00 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 5,000 ms |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 85,200 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-03 13:21:45 |
| 合計ジャッジ時間 | 924 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
L, M, N = int(input()), int(input()), int(input())
if N >= 25:
a = N // 25
M += a
N -= a * 25
if M >= 4:
b = M // 4
L += b
M -= b * 4
if L >= 10:
c = L // 10
L -= c * 10
print(sum([L, M, N]))