結果

問題 No.32 貯金箱の憂鬱
ユーザー MzoFreeMzoFree
提出日時 2021-04-29 23:02:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 311 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-09-24 23:11:31
合計ジャッジ時間 1,083 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,936 KB
testcase_01 AC 16 ms
7,840 KB
testcase_02 AC 16 ms
7,884 KB
testcase_03 AC 15 ms
7,752 KB
testcase_04 AC 15 ms
7,940 KB
testcase_05 AC 16 ms
7,828 KB
testcase_06 AC 15 ms
7,780 KB
testcase_07 AC 16 ms
7,884 KB
testcase_08 AC 15 ms
7,776 KB
testcase_09 AC 16 ms
7,852 KB
testcase_10 AC 15 ms
7,844 KB
testcase_11 AC 15 ms
7,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


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

print(a + b + c)
0