結果

問題 No.2331 Maximum Quadrilateral
ユーザー 👑 p-adicp-adic
提出日時 2023-07-17 18:40:16
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 399 bytes
コンパイル時間 991 ms
コンパイル使用メモリ 81,656 KB
実行使用メモリ 606,364 KB
最終ジャッジ日時 2023-10-18 00:33:11
合計ジャッジ時間 49,219 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 1,425 ms
361,804 KB
testcase_02 AC 1,634 ms
418,156 KB
testcase_03 AC 1,630 ms
418,156 KB
testcase_04 TLE -
testcase_05 TLE -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 AC 1,359 ms
353,308 KB
testcase_09 AC 1,235 ms
333,004 KB
testcase_10 AC 1,137 ms
309,748 KB
testcase_11 AC 1,208 ms
328,196 KB
testcase_12 AC 1,134 ms
308,208 KB
testcase_13 AC 1,194 ms
323,480 KB
testcase_14 TLE -
testcase_15 AC 333 ms
114,400 KB
testcase_16 AC 810 ms
240,892 KB
testcase_17 AC 116 ms
85,340 KB
testcase_18 AC 295 ms
124,084 KB
testcase_19 AC 133 ms
89,164 KB
testcase_20 TLE -
testcase_21 TLE -
testcase_22 TLE -
testcase_23 TLE -
testcase_24 TLE -
testcase_25 AC 37 ms
53,408 KB
testcase_26 AC 39 ms
53,408 KB
testcase_27 AC 39 ms
53,408 KB
testcase_28 AC 38 ms
53,408 KB
testcase_29 AC 38 ms
53,408 KB
testcase_30 AC 38 ms
53,408 KB
testcase_31 AC 39 ms
53,408 KB
testcase_32 AC 39 ms
53,408 KB
testcase_33 AC 39 ms
53,408 KB
testcase_34 AC 38 ms
53,408 KB
testcase_35 AC 38 ms
53,408 KB
testcase_36 AC 39 ms
53,408 KB
testcase_37 AC 38 ms
53,408 KB
testcase_38 AC 40 ms
53,408 KB
testcase_39 AC 38 ms
53,408 KB
testcase_40 AC 38 ms
53,408 KB
testcase_41 AC 38 ms
53,408 KB
testcase_42 AC 38 ms
53,408 KB
testcase_43 AC 38 ms
53,408 KB
testcase_44 AC 38 ms
53,408 KB
testcase_45 AC 39 ms
53,408 KB
testcase_46 AC 38 ms
53,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I,R=input,range
N=int(I())
X=[0]*N
Y=[0]*N
M=R(N)
for i in M:X[i],Y[i]=map(int,I().split())
S=[[[(X[j]-X[i])*(Y[k]-Y[i])-(Y[j]-Y[i])*(X[k]-X[i])for k in M]for j in M]for i in M]
F=[[-10**8,-10**8]for v in R(N*N)]
a=0
for i in R(N):
	for j in R(i+1,N):
		v=i*N+j
		for k in R(N):
			s=S[i][j][k]
			if k!=i and k!=j:
				for c in R(2):F[v][c]=max(F[v][c],[s,-s][c])
		a=max(a,abs(sum(F[v])))
print(a)
0