結果

問題 No.2012 Largest Triangle
ユーザー prd_xxxprd_xxx
提出日時 2022-07-15 23:13:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 312 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 48,188 KB
最終ジャッジ日時 2023-09-10 04:54:37
合計ジャッジ時間 26,527 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,896 KB
testcase_01 AC 15 ms
7,984 KB
testcase_02 AC 15 ms
7,980 KB
testcase_03 AC 15 ms
7,856 KB
testcase_04 AC 17 ms
7,816 KB
testcase_05 AC 16 ms
7,996 KB
testcase_06 AC 15 ms
7,856 KB
testcase_07 AC 16 ms
7,900 KB
testcase_08 AC 16 ms
7,856 KB
testcase_09 AC 15 ms
7,868 KB
testcase_10 AC 16 ms
7,804 KB
testcase_11 AC 19 ms
7,832 KB
testcase_12 AC 19 ms
7,904 KB
testcase_13 AC 19 ms
7,896 KB
testcase_14 AC 19 ms
7,824 KB
testcase_15 AC 18 ms
7,984 KB
testcase_16 AC 1,065 ms
48,188 KB
testcase_17 AC 1,029 ms
47,612 KB
testcase_18 AC 1,039 ms
47,944 KB
testcase_19 AC 1,022 ms
47,472 KB
testcase_20 AC 1,056 ms
47,952 KB
testcase_21 AC 1,046 ms
47,164 KB
testcase_22 AC 1,067 ms
47,412 KB
testcase_23 AC 1,039 ms
47,312 KB
testcase_24 AC 1,029 ms
47,436 KB
testcase_25 AC 1,040 ms
47,520 KB
testcase_26 AC 1,036 ms
48,172 KB
testcase_27 AC 1,027 ms
47,532 KB
testcase_28 AC 1,023 ms
47,384 KB
testcase_29 AC 1,029 ms
47,212 KB
testcase_30 AC 1,031 ms
48,112 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 308 ms
8,228 KB
testcase_37 AC 312 ms
8,404 KB
testcase_38 AC 324 ms
8,284 KB
testcase_39 AC 333 ms
8,264 KB
testcase_40 AC 306 ms
8,352 KB
testcase_41 AC 693 ms
18,624 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(1000):
    if len(XY) < 2: break
    x1,y1 = XY.pop()
    for x2,y2 in XY[-1000:]:
        ans = max(ans, abs(x1*y2 - x2*y1))
print(ans)
0