結果

問題 No.2315 Flying Camera
ユーザー sasa8uyauyasasa8uyauya
提出日時 2024-08-31 12:05:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 82,540 KB
実行使用メモリ 54,792 KB
最終ジャッジ日時 2024-08-31 12:05:31
合計ジャッジ時間 2,735 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,808 KB
testcase_01 AC 37 ms
52,668 KB
testcase_02 AC 37 ms
52,084 KB
testcase_03 AC 38 ms
54,148 KB
testcase_04 AC 39 ms
53,216 KB
testcase_05 AC 39 ms
53,700 KB
testcase_06 AC 40 ms
53,844 KB
testcase_07 AC 39 ms
53,696 KB
testcase_08 AC 38 ms
52,396 KB
testcase_09 AC 36 ms
52,560 KB
testcase_10 AC 38 ms
53,680 KB
testcase_11 AC 40 ms
53,556 KB
testcase_12 AC 37 ms
52,460 KB
testcase_13 AC 37 ms
53,468 KB
testcase_14 AC 39 ms
54,792 KB
testcase_15 AC 39 ms
53,012 KB
testcase_16 AC 39 ms
52,488 KB
testcase_17 AC 37 ms
53,092 KB
testcase_18 AC 40 ms
54,180 KB
testcase_19 AC 38 ms
52,620 KB
testcase_20 AC 36 ms
53,380 KB
testcase_21 AC 37 ms
53,172 KB
testcase_22 AC 36 ms
52,740 KB
testcase_23 AC 36 ms
51,940 KB
testcase_24 AC 40 ms
54,468 KB
testcase_25 AC 36 ms
52,196 KB
testcase_26 AC 40 ms
54,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=[0]*n
y=[0]*n
for i in range(n):
	x[i],y[i]=map(int,input().split())
x.sort()
y.sort()
print(sum(abs(x[i]-x[n//2])+abs(y[i]-y[n//2]) for i in range(n)))
0