結果

問題 No.2386 Udon Coupon (Easy)
ユーザー ああいい
提出日時 2023-07-22 16:00:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 60,408 KB
最終ジャッジ日時 2024-09-22 15:42:32
合計ジャッジ時間 3,489 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 WA * 21
権限があれば一括ダウンロードができます

ソースコード

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