結果

問題 No.32 貯金箱の憂鬱
ユーザー MrEMGrationMrEMGration
提出日時 2019-03-24 15:11:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 227 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 71,668 KB
最終ジャッジ日時 2023-09-30 13:28:37
合計ジャッジ時間 1,919 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,332 KB
testcase_01 AC 69 ms
71,524 KB
testcase_02 AC 68 ms
71,596 KB
testcase_03 AC 70 ms
71,428 KB
testcase_04 AC 68 ms
71,376 KB
testcase_05 AC 71 ms
71,464 KB
testcase_06 AC 71 ms
71,436 KB
testcase_07 AC 70 ms
71,244 KB
testcase_08 AC 71 ms
71,424 KB
testcase_09 AC 70 ms
71,668 KB
testcase_10 AC 69 ms
71,460 KB
testcase_11 AC 70 ms
71,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
L=int(input())
M=int(input())
N=int(input())

total=L*100+M*25+N

Bc=math.floor(total/1000)
Lc=math.floor((total-Bc*1000)/100)
Mc=math.floor((total-Bc*1000-Lc*100)/25)
Nc=total-Lc*100-Mc*25-Bc*1000

print(Lc+Mc+Nc)
0