結果

問題 No.2012 Largest Triangle
ユーザー prd_xxxprd_xxx
提出日時 2022-07-15 23:11:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 1,246 ms
コンパイル使用メモリ 86,836 KB
実行使用メモリ 96,688 KB
最終ジャッジ日時 2023-09-10 04:50:26
合計ジャッジ時間 53,158 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,464 KB
testcase_01 AC 74 ms
71,256 KB
testcase_02 AC 73 ms
71,352 KB
testcase_03 AC 73 ms
71,352 KB
testcase_04 AC 74 ms
71,384 KB
testcase_05 AC 74 ms
71,380 KB
testcase_06 AC 75 ms
71,464 KB
testcase_07 AC 74 ms
71,104 KB
testcase_08 AC 75 ms
71,408 KB
testcase_09 AC 75 ms
71,240 KB
testcase_10 AC 73 ms
71,388 KB
testcase_11 AC 80 ms
75,920 KB
testcase_12 AC 79 ms
75,716 KB
testcase_13 AC 79 ms
75,912 KB
testcase_14 AC 81 ms
75,880 KB
testcase_15 AC 80 ms
76,184 KB
testcase_16 AC 2,399 ms
96,396 KB
testcase_17 AC 2,372 ms
96,064 KB
testcase_18 AC 2,370 ms
96,572 KB
testcase_19 AC 2,368 ms
96,064 KB
testcase_20 AC 2,424 ms
96,340 KB
testcase_21 AC 2,412 ms
95,548 KB
testcase_22 AC 2,393 ms
95,808 KB
testcase_23 AC 2,349 ms
96,148 KB
testcase_24 AC 2,390 ms
95,968 KB
testcase_25 AC 2,400 ms
96,304 KB
testcase_26 AC 2,380 ms
96,688 KB
testcase_27 AC 2,303 ms
96,304 KB
testcase_28 AC 2,423 ms
95,980 KB
testcase_29 AC 2,375 ms
95,920 KB
testcase_30 AC 2,321 ms
96,572 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 87 ms
76,584 KB
testcase_37 AC 85 ms
76,332 KB
testcase_38 AC 84 ms
76,616 KB
testcase_39 AC 83 ms
76,268 KB
testcase_40 AC 84 ms
76,276 KB
testcase_41 AC 198 ms
84,580 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(80):
    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