結果

問題 No.32 貯金箱の憂鬱
ユーザー yoshi_kyoshi_k
提出日時 2017-09-17 16:25:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 527 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 10,932 KB
実行使用メモリ 7,980 KB
最終ジャッジ日時 2023-09-30 12:41:19
合計ジャッジ時間 1,020 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,860 KB
testcase_01 AC 16 ms
7,868 KB
testcase_02 AC 16 ms
7,796 KB
testcase_03 AC 16 ms
7,832 KB
testcase_04 AC 16 ms
7,928 KB
testcase_05 AC 16 ms
7,788 KB
testcase_06 AC 15 ms
7,980 KB
testcase_07 AC 16 ms
7,804 KB
testcase_08 AC 16 ms
7,892 KB
testcase_09 AC 16 ms
7,872 KB
testcase_10 AC 16 ms
7,860 KB
testcase_11 AC 15 ms
7,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

try:
    import mydebug

    def dprint(*objects):
        print(*objects)
except:
    def dprint(*objects, sep='', end='\n'): pass

# d, p = [int(x) for x in input().split()]
l = int(input())
m = int(input())
n = int(input())
dprint("l:%d m:%d n:%d" % (l, m, n))

ans = 0

total = l * 100 + m * 25 + 1 * n
dprint("total",total)

total %= 1000

left = total
ans = 0
ans += left // 100
left = left % 100
dprint("left",left, "ans", ans)
ans += left // 25
left = left % 25
ans += left
dprint("left",left, "ans", ans)

print(ans)

0