結果

問題 No.32 貯金箱の憂鬱
ユーザー ppp
提出日時 2016-01-20 11:31:13
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 308 bytes
コンパイル時間 578 ms
コンパイル使用メモリ 7,068 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-21 14:44:06
合計ジャッジ時間 1,207 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 12
権限があれば一括ダウンロードができます

ソースコード

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