結果

問題 No.32 貯金箱の憂鬱
ユーザー dashi_dragonsdashi_dragons
提出日時 2017-02-09 23:20:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 346 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 10,816 KB
実行使用メモリ 7,940 KB
最終ジャッジ日時 2023-09-30 08:22:08
合計ジャッジ時間 1,056 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,812 KB
testcase_01 AC 17 ms
7,792 KB
testcase_02 AC 16 ms
7,804 KB
testcase_03 AC 15 ms
7,808 KB
testcase_04 AC 16 ms
7,776 KB
testcase_05 AC 16 ms
7,824 KB
testcase_06 AC 16 ms
7,764 KB
testcase_07 AC 16 ms
7,936 KB
testcase_08 AC 16 ms
7,940 KB
testcase_09 AC 16 ms
7,772 KB
testcase_10 AC 16 ms
7,700 KB
testcase_11 AC 16 ms
7,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

data = input()
L = int(data)
if L < 0 or L > 1000:
	raise
	sys.exit()	

data = input()
M = int(data)
if M < 0 or M > 1000:
	raise
	sys.exit()

data = input()
N = int(data)
if N < 0 or N > 1000:
	raise
	sys.exit()

O = 0

while(N >= 25):
	N -= 25
	M += 1

while(M >= 4):
	M -= 4
	L += 1

while(L >= 10):
	L -= 10
	O += 1

print(L+M+N)
0