結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
zombietan
|
| 提出日時 | 2016-04-26 00:31:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 5,000 ms |
| コード長 | 391 bytes |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-23 02:17:54 |
| 合計ジャッジ時間 | 1,481 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
L = int(input())
M = int(input())
N = int(input())
coin_num = []
if N < 25:
coin_num.append(N)
else:
nq, nr = divmod(N, 25)
coin_num.append(nr)
M = M + nq
if M < 4:
coin_num.append(M)
else:
mq, mr = divmod(M, 4)
coin_num.append(mr)
L = L + mq
if L < 10:
coin_num.append(L)
else:
lq, lr = divmod(L, 10)
coin_num.append(lr)
print(sum(coin_num))
zombietan