結果

問題 No.32 貯金箱の憂鬱
ユーザー o_jouo_jou
提出日時 2018-01-20 12:09:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 500 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 11,008 KB
実行使用メモリ 8,032 KB
最終ジャッジ日時 2023-08-26 08:40:32
合計ジャッジ時間 1,010 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

sum = 100*L + 25*M + N

if sum >= 1000 :
    a = sum // 1000
    b = (sum - 1000*a) // 100
    c = (sum - 1000*a - 100*b) // 25
    d = sum - 1000*a - 100*b - 25*c
    print(sum, a, b, c, d)
    print(b+c+d)

elif sum >= 100:
    a = sum // 100
    b = (sum - 100*a) // 25 
    c = sum - 100*a - 25*b
    print(sum, a, b, c)
    print(b+c)
elif sum >= 25:
    a = sum // 25
    b = sum - 25*b
    print(sum, a, b)
    print(b)
else:
    print(sum)
0