結果
問題 | No.2309 [Cherry 5th Tune D] 夏の先取り |
ユーザー | 👑 p-adic |
提出日時 | 2023-05-20 10:11:47 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 552 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 82,816 KB |
実行使用メモリ | 86,108 KB |
最終ジャッジ日時 | 2024-06-01 05:32:34 |
合計ジャッジ時間 | 64,179 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 338 ms
83,528 KB |
testcase_01 | TLE | - |
testcase_02 | AC | 2,684 ms
79,304 KB |
testcase_03 | AC | 2,848 ms
78,968 KB |
testcase_04 | AC | 2,633 ms
79,052 KB |
testcase_05 | AC | 2,597 ms
79,112 KB |
testcase_06 | AC | 2,625 ms
79,012 KB |
testcase_07 | AC | 2,606 ms
78,780 KB |
testcase_08 | AC | 2,930 ms
78,664 KB |
testcase_09 | AC | 2,623 ms
78,860 KB |
testcase_10 | AC | 2,559 ms
79,088 KB |
testcase_11 | AC | 2,513 ms
78,672 KB |
testcase_12 | AC | 2,564 ms
79,420 KB |
testcase_13 | AC | 2,892 ms
78,536 KB |
testcase_14 | AC | 2,496 ms
79,376 KB |
testcase_15 | AC | 2,760 ms
78,772 KB |
testcase_16 | AC | 2,325 ms
78,588 KB |
testcase_17 | AC | 2,708 ms
79,048 KB |
testcase_18 | AC | 2,478 ms
78,588 KB |
testcase_19 | AC | 2,328 ms
79,156 KB |
testcase_20 | AC | 2,373 ms
78,576 KB |
testcase_21 | AC | 2,293 ms
78,780 KB |
testcase_22 | AC | 2,127 ms
79,020 KB |
testcase_23 | AC | 2,346 ms
78,920 KB |
testcase_24 | TLE | - |
testcase_25 | AC | 2,725 ms
79,248 KB |
testcase_26 | TLE | - |
testcase_27 | AC | 2,758 ms
79,244 KB |
testcase_28 | AC | 2,631 ms
79,724 KB |
testcase_29 | AC | 2,890 ms
78,856 KB |
testcase_30 | AC | 2,972 ms
78,516 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 | -- | - |
ソースコード
I,R,=input,range S,N,B,x=R(3),R(2),[0]*3,[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)%3] if b*(a<c):a=c def V(): for k in S:B[k]=A[k]if k!=j else y for i in S: x[i],s=0,B[(i+2)%3] for k in N:x[(i+1+k)%3]=s-B[(i+k)%3] x[3]=s-x[(i+1)%3]-x[(i+2)%3] 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)