結果

問題 No.32 貯金箱の憂鬱
ユーザー killy0503killy0503
提出日時 2020-05-04 17:48:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 444 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 8,120 KB
最終ジャッジ日時 2023-09-06 23:59:09
合計ジャッジ時間 1,210 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 #

import math

l = int(input()) #100円硬貨の枚数
m = int(input()) #25円硬貨の枚数
n = int(input()) #1円硬貨の枚数

change_n = math.floor((n * 1) / 25) 
result_n = n-((change_n * 25)/1)

m = m + change_n
change_m = math.floor((m * 25) / 100) 
result_m = m-((change_m * 100)/25)

l = l + change_m
change_l = math.floor((l * 100) / 1000)
result_l = l-((change_l * 1000)/100)

result = result_n + result_m + result_l

print (result)
0