結果

問題 No.32 貯金箱の憂鬱
ユーザー ktayaktaya
提出日時 2019-01-10 21:38:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 1,007 ms
コンパイル使用メモリ 87,028 KB
実行使用メモリ 71,588 KB
最終ジャッジ日時 2023-09-30 13:22:51
合計ジャッジ時間 2,094 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,304 KB
testcase_01 AC 70 ms
71,232 KB
testcase_02 AC 76 ms
71,588 KB
testcase_03 AC 71 ms
71,452 KB
testcase_04 AC 71 ms
71,476 KB
testcase_05 AC 77 ms
71,584 KB
testcase_06 AC 72 ms
71,496 KB
testcase_07 AC 72 ms
71,296 KB
testcase_08 AC 72 ms
71,344 KB
testcase_09 AC 73 ms
71,236 KB
testcase_10 AC 71 ms
71,432 KB
testcase_11 AC 70 ms
71,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = int(input())
b = int(input())
c = int(input())

def calc(a, b, c):
    q1, mod1 = divmod(c, 25)
    b += q1
    q2, mod2 = divmod(b, 4)
    a += q2
    q3, mod3 = divmod(a, 10)
    return mod1 + mod2 + mod3

print(calc(a, b, c))
0