結果

問題 No.32 貯金箱の憂鬱
ユーザー R NR N
提出日時 2020-07-22 11:45:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 7,992 KB
最終ジャッジ日時 2023-09-02 07:54:09
合計ジャッジ時間 2,211 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# coding:utf-8
L, M, N = [int(input()) for i in range(3)]

L_m = L * 100 # 100 * 100
M_m = M * 25 # 25 * 100
N_m = N * 1 # 1 * 500
T_m = 0

a = N_m % 25 # 1円の残り枚数

m_total = (N_m - a) // 25 + M_m

b = m_total % 100 # 25円の残り枚数

l_total = M_m - b + L_m

c = l_total % 1000 # 100円の残り枚数

ans = a + (b // 25) + (c // 100)
print(ans)
0