結果

問題 No.2012 Largest Triangle
ユーザー prd_xxxprd_xxx
提出日時 2022-07-15 23:09:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 1,075 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 96,568 KB
最終ジャッジ日時 2023-09-10 04:45:55
合計ジャッジ時間 36,923 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,232 KB
testcase_01 AC 69 ms
71,320 KB
testcase_02 AC 68 ms
71,352 KB
testcase_03 AC 69 ms
71,248 KB
testcase_04 AC 70 ms
71,548 KB
testcase_05 AC 69 ms
71,408 KB
testcase_06 AC 72 ms
71,324 KB
testcase_07 AC 71 ms
71,420 KB
testcase_08 AC 71 ms
71,404 KB
testcase_09 AC 70 ms
71,344 KB
testcase_10 AC 69 ms
71,408 KB
testcase_11 AC 75 ms
76,040 KB
testcase_12 AC 74 ms
75,952 KB
testcase_13 AC 77 ms
76,044 KB
testcase_14 AC 77 ms
76,216 KB
testcase_15 AC 76 ms
75,772 KB
testcase_16 AC 1,537 ms
95,928 KB
testcase_17 AC 1,516 ms
96,056 KB
testcase_18 AC 1,533 ms
96,568 KB
testcase_19 AC 1,556 ms
96,304 KB
testcase_20 AC 1,571 ms
96,192 KB
testcase_21 AC 1,515 ms
96,016 KB
testcase_22 AC 1,593 ms
95,872 KB
testcase_23 AC 1,561 ms
95,744 KB
testcase_24 AC 1,601 ms
96,388 KB
testcase_25 AC 1,589 ms
96,244 KB
testcase_26 AC 1,579 ms
96,400 KB
testcase_27 AC 1,551 ms
96,096 KB
testcase_28 AC 1,582 ms
96,036 KB
testcase_29 AC 1,524 ms
95,848 KB
testcase_30 AC 1,538 ms
96,324 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 81 ms
76,372 KB
testcase_37 AC 83 ms
76,208 KB
testcase_38 AC 82 ms
76,096 KB
testcase_39 AC 82 ms
76,588 KB
testcase_40 AC 82 ms
76,508 KB
testcase_41 AC 179 ms
84,848 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(50):
    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