結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-23 09:39:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 5,000 ms |
| コード長 | 231 bytes |
| コンパイル時間 | 324 ms |
| コンパイル使用メモリ | 82,404 KB |
| 実行使用メモリ | 54,128 KB |
| 最終ジャッジ日時 | 2024-07-23 08:04:58 |
| 合計ジャッジ時間 | 1,311 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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]))