結果
問題 | No.3074 Divide Points Fairly |
ユーザー |
![]() |
提出日時 | 2025-03-24 20:24:13 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 394 bytes |
コンパイル時間 | 321 ms |
コンパイル使用メモリ | 82,356 KB |
実行使用メモリ | 87,700 KB |
最終ジャッジ日時 | 2025-03-27 12:53:54 |
合計ジャッジ時間 | 11,461 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 38 WA * 4 |
ソースコード
n = int(input())a = []for i in range(2 * n):x, y = map(int, input().split())a.append((x, y))a.sort(lambda x: (x[1], x[0]))c1, c2 = a[n - 1], a[n]if c1[1] != c2[1]:print(0, 2, -c1[1] - c2[1])else:y = c1[1]c = 10**5while not (abs(-2 * c) <= 10**5 and abs(2 * c * y - c1[0] - c2[0]) <= 2 * 10**10):c -= 1print(2, -2 * c, 2 * c * y - c1[0] - c2[0])