結果

問題 No.2309 [Cherry 5th Tune D] 夏の先取り
ユーザー 👑 p-adicp-adic
提出日時 2023-05-20 14:10:48
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 520 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 154,468 KB
最終ジャッジ日時 2024-06-01 07:09:41
合計ジャッジ時間 82,860 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 330 ms
154,468 KB
testcase_01 AC 2,865 ms
78,208 KB
testcase_02 AC 2,574 ms
78,260 KB
testcase_03 AC 2,691 ms
78,692 KB
testcase_04 AC 2,476 ms
78,412 KB
testcase_05 AC 2,532 ms
78,928 KB
testcase_06 AC 2,510 ms
78,384 KB
testcase_07 AC 2,483 ms
78,196 KB
testcase_08 AC 2,866 ms
78,936 KB
testcase_09 AC 2,506 ms
77,976 KB
testcase_10 AC 2,446 ms
79,048 KB
testcase_11 AC 2,351 ms
78,272 KB
testcase_12 AC 2,690 ms
78,276 KB
testcase_13 AC 2,812 ms
78,084 KB
testcase_14 AC 2,448 ms
77,696 KB
testcase_15 AC 2,744 ms
78,276 KB
testcase_16 AC 2,231 ms
78,272 KB
testcase_17 AC 2,603 ms
77,988 KB
testcase_18 AC 2,402 ms
78,384 KB
testcase_19 AC 2,268 ms
78,456 KB
testcase_20 AC 2,317 ms
78,136 KB
testcase_21 AC 2,251 ms
78,208 KB
testcase_22 AC 1,996 ms
78,056 KB
testcase_23 AC 2,247 ms
78,660 KB
testcase_24 AC 2,958 ms
78,208 KB
testcase_25 AC 2,568 ms
78,896 KB
testcase_26 AC 2,910 ms
78,248 KB
testcase_27 AC 2,626 ms
78,336 KB
testcase_28 AC 2,522 ms
78,464 KB
testcase_29 AC 2,723 ms
77,856 KB
testcase_30 AC 2,895 ms
78,464 KB
testcase_31 TLE -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

I,R=input,range
S,N,B,x=R(3),R(2),[0]*6,[0]*4
def J():
	return list(map(int,I().split()))
def U():
	global a
	s,b,c=sum(x),1,0
	for j in R(4):b,c=b*(x[j]>=0),c+x[j]*X[j]
	for j in S:b*=s-x[j]<=B[j+2]
	if b*(a<c):a=c
def V():
	for k in R(6):B[k]=A[k%3]if k%3!=j else y
	for i in S:
		for k in S:x[k]=B[i+2]-B[k+2]
		x[3]=B[i]+B[i+1]-B[i+2]
		U()
	for w in N:
		x[3],x[0]=w,(B[0]+B[1]-B[2]-w)//2
		for k in N:x[1+k]=B[1-k]-x[0]-w
		U()
for t in R(int(I())):
	A,X,a=J(),J(),0
	for j in S:
		for y in R(A[j]+1):V()
	print(a)
0