結果

問題 No.32 貯金箱の憂鬱
ユーザー scillicettscillicett
提出日時 2019-08-23 08:04:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 303 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 10,520 KB
実行使用メモリ 8,108 KB
最終ジャッジ日時 2023-09-30 13:35:24
合計ジャッジ時間 932 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,896 KB
testcase_01 AC 17 ms
8,100 KB
testcase_02 AC 17 ms
8,040 KB
testcase_03 AC 17 ms
7,896 KB
testcase_04 AC 17 ms
7,968 KB
testcase_05 AC 16 ms
7,968 KB
testcase_06 AC 16 ms
7,900 KB
testcase_07 AC 16 ms
8,108 KB
testcase_08 AC 16 ms
8,104 KB
testcase_09 AC 15 ms
8,048 KB
testcase_10 AC 15 ms
7,940 KB
testcase_11 AC 15 ms
7,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
x = 3
l,m,n = map(int,[input() for i in range(x)])


def change(l,m,n):
    re_n = math.floor(n/25)
    m += re_n
    n -= re_n * 25
    re_m = math.floor(m/4)
    l += re_m
    m -= re_m * 4
    re_l = math.floor(l/10)
    l -= re_l * 10
    return n+m+l

print(int(change(l,m,n)),end='\n')
0