結果

問題 No.2317 Expression Menu
ユーザー 👑 p-adicp-adic
提出日時 2023-06-06 19:29:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 519 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 86,748 KB
実行使用メモリ 79,116 KB
最終ジャッジ日時 2023-08-28 10:45:18
合計ジャッジ時間 12,928 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,404 KB
testcase_01 AC 75 ms
71,436 KB
testcase_02 AC 97 ms
76,476 KB
testcase_03 AC 205 ms
77,256 KB
testcase_04 AC 205 ms
77,088 KB
testcase_05 AC 205 ms
76,836 KB
testcase_06 AC 207 ms
77,068 KB
testcase_07 AC 169 ms
77,224 KB
testcase_08 AC 216 ms
78,528 KB
testcase_09 AC 174 ms
77,028 KB
testcase_10 AC 218 ms
77,040 KB
testcase_11 AC 228 ms
78,596 KB
testcase_12 AC 183 ms
79,116 KB
testcase_13 AC 205 ms
77,012 KB
testcase_14 AC 220 ms
77,020 KB
testcase_15 AC 169 ms
77,116 KB
testcase_16 AC 210 ms
76,812 KB
testcase_17 AC 208 ms
76,980 KB
testcase_18 AC 251 ms
76,844 KB
testcase_19 AC 214 ms
77,220 KB
testcase_20 AC 219 ms
77,108 KB
testcase_21 AC 198 ms
77,112 KB
testcase_22 AC 166 ms
76,992 KB
testcase_23 AC 515 ms
78,556 KB
testcase_24 AC 514 ms
78,340 KB
testcase_25 AC 515 ms
78,492 KB
testcase_26 AC 511 ms
78,444 KB
testcase_27 AC 513 ms
78,200 KB
testcase_28 AC 514 ms
78,632 KB
testcase_29 AC 512 ms
78,416 KB
testcase_30 AC 519 ms
78,640 KB
testcase_31 AC 515 ms
78,316 KB
testcase_32 AC 511 ms
78,480 KB
testcase_33 AC 71 ms
71,416 KB
testcase_34 AC 72 ms
71,564 KB
testcase_35 AC 77 ms
76,252 KB
testcase_36 AC 71 ms
71,436 KB
testcase_37 AC 73 ms
71,088 KB
testcase_38 AC 461 ms
78,196 KB
testcase_39 AC 423 ms
76,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

R=range
def J():
	return map(int,input().split())
N,X,Y=J()
d=[[0]*(Y+1) for x in R(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][y+B]=max(d[x+A][y+B],d[x][y]+C)
a=0
for x in R(X+1):
	for y in R(Y+1):a=max(a,d[x][y])
print(a)
0