結果

問題 No.32 貯金箱の憂鬱
ユーザー pppppp
提出日時 2016-01-20 11:31:13
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 308 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 7,076 KB
実行使用メモリ 6,420 KB
最終ジャッジ日時 2023-10-21 13:29:07
合計ジャッジ時間 874 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

L, M, N = map(int, raw_input().split())
amount = int(L*100 + M*25 + N*1)
# num of bills
amount = amount - amount / 1000 * 1000
# num of coin100
coin100 = amount / 100
amount = amount - amount / 100 * 100
# num of coin25
coin25 = amount / 25
amount = amount - amount / 25 * 25

print coin100 + coin25 + amount
0