結果

問題 No.178 美しいWhitespace (1)
ユーザー ohana
提出日時 2023-10-23 13:23:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 81,984 KB
実行使用メモリ 63,940 KB
最終ジャッジ日時 2024-09-22 10:06:18
合計ジャッジ時間 2,344 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 3 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = []

for i in range(n):
    a, b = map(int, input().split())
    A.append(a + 4 * b)

c = max(A) - min(A)

print(c // 2 if c % 2 == 0 else -1)
0