結果

問題 No.2012 Largest Triangle
ユーザー prd_xxxprd_xxx
提出日時 2022-07-15 23:14:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 312 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 86,892 KB
実行使用メモリ 96,648 KB
最終ジャッジ日時 2023-09-10 04:56:31
合計ジャッジ時間 20,729 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,464 KB
testcase_01 AC 72 ms
71,320 KB
testcase_02 AC 71 ms
71,364 KB
testcase_03 AC 70 ms
71,160 KB
testcase_04 AC 74 ms
71,452 KB
testcase_05 AC 72 ms
71,388 KB
testcase_06 AC 71 ms
71,324 KB
testcase_07 AC 72 ms
71,392 KB
testcase_08 AC 69 ms
71,448 KB
testcase_09 AC 68 ms
71,312 KB
testcase_10 AC 71 ms
71,340 KB
testcase_11 AC 76 ms
76,020 KB
testcase_12 AC 78 ms
75,980 KB
testcase_13 AC 77 ms
75,956 KB
testcase_14 AC 76 ms
75,872 KB
testcase_15 AC 79 ms
75,920 KB
testcase_16 AC 822 ms
96,224 KB
testcase_17 AC 821 ms
95,804 KB
testcase_18 AC 806 ms
96,292 KB
testcase_19 AC 815 ms
96,100 KB
testcase_20 AC 823 ms
96,412 KB
testcase_21 AC 809 ms
96,032 KB
testcase_22 AC 809 ms
95,532 KB
testcase_23 AC 814 ms
96,072 KB
testcase_24 AC 829 ms
95,812 KB
testcase_25 AC 824 ms
95,852 KB
testcase_26 AC 820 ms
96,320 KB
testcase_27 AC 818 ms
96,336 KB
testcase_28 AC 806 ms
95,792 KB
testcase_29 AC 826 ms
96,124 KB
testcase_30 AC 821 ms
96,648 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 94 ms
76,592 KB
testcase_37 AC 95 ms
76,368 KB
testcase_38 AC 94 ms
76,436 KB
testcase_39 AC 95 ms
76,456 KB
testcase_40 AC 97 ms
76,464 KB
testcase_41 AC 255 ms
84,844 KB
権限があれば一括ダウンロードができます

ソースコード

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(3000):
    if len(XY) < 2: break
    x1,y1 = XY.pop()
    for x2,y2 in XY[-3000:]:
        ans = max(ans, abs(x1*y2 - x2*y1))
print(ans)
0