結果

問題 No.1374 Absolute Game
ユーザー NatsubiSoganNatsubiSogan
提出日時 2021-02-05 22:45:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 1,144 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 18,888 KB
最終ジャッジ日時 2023-09-15 09:37:12
合計ジャッジ時間 3,671 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,800 KB
testcase_01 AC 15 ms
7,744 KB
testcase_02 AC 15 ms
7,800 KB
testcase_03 AC 16 ms
7,852 KB
testcase_04 AC 15 ms
7,744 KB
testcase_05 AC 15 ms
7,744 KB
testcase_06 AC 15 ms
7,832 KB
testcase_07 AC 16 ms
7,832 KB
testcase_08 AC 30 ms
11,172 KB
testcase_09 AC 57 ms
16,284 KB
testcase_10 AC 64 ms
17,232 KB
testcase_11 AC 45 ms
13,668 KB
testcase_12 AC 32 ms
11,544 KB
testcase_13 AC 53 ms
15,160 KB
testcase_14 AC 72 ms
18,720 KB
testcase_15 AC 72 ms
18,888 KB
testcase_16 AC 72 ms
18,852 KB
testcase_17 AC 72 ms
18,888 KB
testcase_18 AC 72 ms
18,760 KB
testcase_19 AC 71 ms
18,792 KB
testcase_20 AC 34 ms
11,948 KB
testcase_21 AC 42 ms
13,504 KB
testcase_22 AC 71 ms
18,628 KB
testcase_23 AC 20 ms
9,220 KB
testcase_24 AC 22 ms
9,620 KB
testcase_25 AC 24 ms
9,864 KB
testcase_26 AC 31 ms
11,332 KB
testcase_27 AC 39 ms
12,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
c = list(map(int, input().split()))
c.sort()
a, b = sum(c[::2]), sum(c[1::2])
print(abs(abs(a) - abs(b)))
0