結果

問題 No.32 貯金箱の憂鬱
ユーザー MzoFreeMzoFree
提出日時 2021-04-28 07:53:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 426 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 8,016 KB
最終ジャッジ日時 2023-09-21 08:36:49
合計ジャッジ時間 1,412 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,816 KB
testcase_01 AC 16 ms
7,928 KB
testcase_02 AC 15 ms
7,856 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 16 ms
7,896 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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


sum = (L * 100 + M * 25 + N ) #全部でいくらか計算
money1000 = (sum) % 1000 #残りの硬貨1
money100 = (money1000) // 100 #100円硬貨の枚数
sum = money1000 - money100 * 100 #残りの硬貨2
money25 = (money100) // 25 #25円硬貨の枚数
sum = sum - money25 * 25 #残りの硬貨3
money1 = sum // 1  #1円硬貨の枚数

print(money100 + money25 + money1)
0