結果

問題 No.32 貯金箱の憂鬱
ユーザー takeytakey
提出日時 2018-03-02 17:02:34
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 327 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 8,096 KB
最終ジャッジ日時 2023-09-30 13:05:45
合計ジャッジ時間 1,005 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,884 KB
testcase_01 AC 17 ms
8,064 KB
testcase_02 AC 16 ms
7,860 KB
testcase_03 AC 16 ms
8,056 KB
testcase_04 AC 16 ms
8,096 KB
testcase_05 AC 16 ms
7,976 KB
testcase_06 AC 16 ms
7,884 KB
testcase_07 AC 16 ms
7,952 KB
testcase_08 AC 16 ms
7,892 KB
testcase_09 AC 16 ms
7,968 KB
testcase_10 AC 16 ms
7,920 KB
testcase_11 AC 16 ms
7,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#-*- coding:utf-8 -*-
import math

if __name__ == "__main__":
	K = 0             # 1000
	L = int(input())  # 100
	M = int(input())  # 25
	N = int(input())  # 1

	ex_M = math.floor(N/25)
	N -= ex_M*25

	M += ex_M
	ex_L = math.floor(M/4)
	M -= ex_L*4

	L += ex_L
	ex_K = math.floor(L/10)
	L -= ex_K*10

	K += ex_K

	print(N+M+L)
0