結果

問題 No.3074 Divide Points Fairly
ユーザー timi
提出日時 2025-03-28 22:09:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 491 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 82,732 KB
実行使用メモリ 99,604 KB
最終ジャッジ日時 2025-03-28 22:09:29
合計ジャッジ時間 9,053 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 38 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[]
X,Y,Z,W=[],[],[],[]
for i in range(2*N):
  x,y=map(int, input().split())
  A.append((x,y))
  X.append(x);Y.append(y)
  Z.append(y-x);W.append(y+x)
  
X=sorted(X);Y=sorted(Y);Z=sorted(Z);W=sorted(W)
if X[N-1]!=X[N]:
  a,b,c=-2,0,X[N-1]+X[N]
  print(a,b,c)
  exit()
  
if Y[N-1]!=Y[N]:
  a,b,c=0,-2,Y[N-1]+Y[N]
  print(a,b,c)
  exit()
  
if Z[N-1]!=Z[N]:
  a,b,c=2,-2,Z[N-1]+Z[N]
  print(a,b,c)
  exit()
  
if W[N-1]!=W[N]:
  a,b,c=-2,-2,W[N-1]+W[N]
  print(a,b,c)
  exit()
0