結果

問題 No.32 貯金箱の憂鬱
ユーザー maurice_1210maurice_1210
提出日時 2018-06-10 17:52:15
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 320 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 7,924 KB
最終ジャッジ日時 2023-09-30 13:12:10
合計ジャッジ時間 1,018 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

s_initial= []
for i in range(3):
    s_initial.append(int(input()))
L = int(s_initial[0]) #100円の枚数
M = int(s_initial[1]) #25円の枚数
N = int(s_initial[2]) #1円の枚数
if N >= 25:
    M = M + N // 25
    N = N % 25

if M >= 4:
    L = L + M // 4
    M = M % 4

if L >= 10:
    L = L % 10

print(L + M + N)
0