結果

問題 No.32 貯金箱の憂鬱
ユーザー MzoFreeMzoFree
提出日時 2021-04-29 22:20:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 494 bytes
コンパイル時間 625 ms
コンパイル使用メモリ 10,484 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-09-24 22:25:29
合計ジャッジ時間 1,158 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
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 = (sum) // 25 #25円硬貨の枚数
sum = sum - money25 * 25 #残りの硬貨3
money1 = sum // 1  #1円硬貨の枚数

print(money1000)
print(money100)
print(money25)
print(money1)
print(sum)
print(money100 + money25 + money1)
0