結果

問題 No.2317 Expression Menu
ユーザー 👑 p-adicp-adic
提出日時 2023-06-06 19:33:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 399 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 78,252 KB
最終ジャッジ日時 2023-08-28 10:46:35
合計ジャッジ時間 10,370 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,232 KB
testcase_01 AC 68 ms
71,348 KB
testcase_02 AC 87 ms
77,080 KB
testcase_03 AC 177 ms
77,812 KB
testcase_04 AC 164 ms
77,640 KB
testcase_05 AC 170 ms
77,580 KB
testcase_06 AC 166 ms
77,692 KB
testcase_07 AC 139 ms
77,636 KB
testcase_08 AC 174 ms
77,832 KB
testcase_09 AC 144 ms
77,724 KB
testcase_10 AC 179 ms
77,556 KB
testcase_11 AC 181 ms
77,740 KB
testcase_12 AC 150 ms
78,252 KB
testcase_13 AC 170 ms
77,784 KB
testcase_14 AC 183 ms
77,628 KB
testcase_15 AC 141 ms
77,728 KB
testcase_16 AC 171 ms
77,656 KB
testcase_17 AC 172 ms
77,564 KB
testcase_18 AC 214 ms
78,072 KB
testcase_19 AC 179 ms
77,696 KB
testcase_20 AC 178 ms
77,724 KB
testcase_21 AC 168 ms
77,968 KB
testcase_22 AC 142 ms
77,644 KB
testcase_23 AC 395 ms
77,464 KB
testcase_24 AC 399 ms
77,808 KB
testcase_25 AC 395 ms
77,628 KB
testcase_26 AC 394 ms
77,572 KB
testcase_27 AC 394 ms
77,900 KB
testcase_28 AC 395 ms
77,700 KB
testcase_29 AC 393 ms
77,808 KB
testcase_30 AC 395 ms
77,692 KB
testcase_31 AC 392 ms
77,468 KB
testcase_32 AC 398 ms
77,704 KB
testcase_33 AC 73 ms
71,304 KB
testcase_34 AC 71 ms
71,488 KB
testcase_35 AC 73 ms
75,712 KB
testcase_36 AC 70 ms
71,148 KB
testcase_37 AC 71 ms
71,028 KB
testcase_38 AC 371 ms
77,380 KB
testcase_39 AC 326 ms
77,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

R=range
def J():
	return map(int,input().split())
N,X,Y=J()
W=Y+1
d=[0]*W*(X+1)
for n in R(N):
	A,B,C=J()
	for x in R(X-A,-1,-1):
		for y in R(Y-B,-1,-1):d[(x+A)*W+y+B]=max(d[(x+A)*W+y+B],d[x*W+y]+C)
print(max(d))
0