結果

問題 No.32 貯金箱の憂鬱
ユーザー killy0503killy0503
提出日時 2020-05-04 17:49:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 456 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 8,128 KB
最終ジャッジ日時 2023-09-30 14:05:12
合計ジャッジ時間 1,031 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,992 KB
testcase_01 AC 16 ms
7,944 KB
testcase_02 AC 16 ms
8,072 KB
testcase_03 AC 16 ms
7,904 KB
testcase_04 AC 16 ms
7,960 KB
testcase_05 AC 16 ms
8,080 KB
testcase_06 AC 16 ms
8,064 KB
testcase_07 AC 16 ms
7,916 KB
testcase_08 AC 16 ms
8,012 KB
testcase_09 AC 16 ms
7,912 KB
testcase_10 AC 16 ms
7,900 KB
testcase_11 AC 16 ms
8,128 KB
権限があれば一括ダウンロードができます

ソースコード

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 = math.floor(result_n + result_m + result_l)

print (result)
0