結果

問題 No.2012 Largest Triangle
ユーザー prd_xxxprd_xxx
提出日時 2022-07-15 23:07:41
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 303 bytes
コンパイル時間 703 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 100,664 KB
最終ジャッジ日時 2023-09-10 04:41:35
合計ジャッジ時間 6,941 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
78,512 KB
testcase_01 AC 73 ms
71,540 KB
testcase_02 AC 71 ms
71,504 KB
testcase_03 AC 72 ms
71,400 KB
testcase_04 AC 72 ms
71,208 KB
testcase_05 AC 72 ms
71,204 KB
testcase_06 AC 72 ms
71,572 KB
testcase_07 AC 70 ms
71,352 KB
testcase_08 AC 72 ms
71,600 KB
testcase_09 AC 74 ms
71,332 KB
testcase_10 AC 73 ms
71,420 KB
testcase_11 AC 80 ms
76,004 KB
testcase_12 AC 79 ms
76,064 KB
testcase_13 AC 79 ms
76,192 KB
testcase_14 AC 77 ms
75,868 KB
testcase_15 AC 76 ms
76,196 KB
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
N = int(input())
XY = [tuple(map(int,input().split())) for i in range(N)]
XY.sort(key=lambda x:x[0]**2 + x[1]**2)

ans = 0
for i in range(300):
    if len(XY) < 2: break
    x1,y1 = XY.pop()
    for x2,y2 in XY:
        ans = max(ans, abs(x1*y2 - x2*y1))
print(ans)
0