結果

問題 No.32 貯金箱の憂鬱
ユーザー pea vavapea vava
提出日時 2020-08-30 19:28:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-27 13:05:53
合計ジャッジ時間 1,209 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 28 ms
10,752 KB
testcase_02 AC 25 ms
10,752 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 25 ms
10,752 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

L = int(input()) #100円の枚数
M = int(input()) #25円の枚数
N = int(input()) #1円の枚数

sum = 100*L + 25*M + N

remaind_1000 = divmod(sum, 1000)
remaind_100 = divmod(remaind_1000[1], 100)
remaind_25 = divmod(remaind_100[1], 25)
remaind_1 = remaind_25[1]

coin = remaind_100[0] + remaind_25[1] + remaind_1
print(coin)
0