結果

問題 No.32 貯金箱の憂鬱
ユーザー hmh5130hmh5130
提出日時 2017-06-16 16:15:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 364 bytes
コンパイル時間 968 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 8,240 KB
最終ジャッジ日時 2023-09-30 11:47:47
合計ジャッジ時間 951 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,108 KB
testcase_01 AC 15 ms
8,080 KB
testcase_02 AC 16 ms
8,204 KB
testcase_03 AC 16 ms
8,216 KB
testcase_04 AC 15 ms
8,204 KB
testcase_05 AC 16 ms
8,168 KB
testcase_06 AC 16 ms
8,164 KB
testcase_07 AC 16 ms
8,240 KB
testcase_08 AC 16 ms
8,104 KB
testcase_09 AC 16 ms
8,240 KB
testcase_10 AC 16 ms
8,172 KB
testcase_11 AC 15 ms
8,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

import math

chokin = L * 100 + M * 25 + N

shihei = math.floor( chokin / 1000)
kouka100 = math.floor( (chokin - shihei * 1000 ) / 100)
kouka25 = math.floor( (chokin - ((shihei * 1000) + (kouka100 * 100))) / 25 )
kouka1 = chokin - (shihei * 1000 + kouka100 *100 + kouka25 *25)

print(kouka100 + kouka25 + kouka1)
0