結果

問題 No.32 貯金箱の憂鬱
コンテスト
ユーザー MrEMGration
提出日時 2019-03-24 15:11:03
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 66 ms / 5,000 ms
+ 75µs
コード長 227 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 557 ms
コンパイル使用メモリ 96,112 KB
実行使用メモリ 79,104 KB
最終ジャッジ日時 2026-08-23 21:04:17
合計ジャッジ時間 2,774 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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