結果

問題 No.2386 Udon Coupon (Easy)
ユーザー ああいいああいい
提出日時 2023-07-22 16:00:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 81,676 KB
実行使用メモリ 59,568 KB
最終ジャッジ日時 2023-10-23 22:24:14
合計ジャッジ時間 5,037 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
57,216 KB
testcase_01 AC 44 ms
57,220 KB
testcase_02 AC 48 ms
58,280 KB
testcase_03 AC 43 ms
57,224 KB
testcase_04 AC 43 ms
57,252 KB
testcase_05 AC 41 ms
57,228 KB
testcase_06 AC 44 ms
58,272 KB
testcase_07 WA -
testcase_08 AC 43 ms
57,224 KB
testcase_09 AC 42 ms
57,224 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 45 ms
57,748 KB
testcase_13 AC 44 ms
57,748 KB
testcase_14 WA -
testcase_15 AC 46 ms
57,748 KB
testcase_16 AC 45 ms
57,744 KB
testcase_17 WA -
testcase_18 AC 47 ms
57,748 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 43 ms
57,744 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 45 ms
57,752 KB
testcase_35 WA -
testcase_36 AC 43 ms
57,752 KB
testcase_37 WA -
testcase_38 AC 47 ms
57,752 KB
testcase_39 AC 43 ms
57,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A,B,C = map(int,input().split())

ans = 0
for i in range(101):
	for j in range(201):
		if i * 10 + j * 5 > N:continue
		tmp = i * C + j * B + (N - i * 10 - j * 5) // 3 * A
		if tmp > ans:ans = tmp
print(ans)
0