結果

問題 No.2835 Take and Flip
ユーザー anonymouslyanonymously
提出日時 2024-08-09 21:28:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 166 ms / 2,000 ms
コード長 132 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 33,424 KB
最終ジャッジ日時 2024-08-09 21:28:43
合計ジャッジ時間 3,902 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,624 KB
testcase_01 AC 26 ms
10,624 KB
testcase_02 AC 27 ms
10,624 KB
testcase_03 AC 110 ms
33,100 KB
testcase_04 AC 109 ms
33,424 KB
testcase_05 AC 26 ms
10,624 KB
testcase_06 AC 150 ms
30,584 KB
testcase_07 AC 149 ms
31,440 KB
testcase_08 AC 133 ms
29,476 KB
testcase_09 AC 156 ms
32,624 KB
testcase_10 AC 159 ms
32,500 KB
testcase_11 AC 160 ms
32,636 KB
testcase_12 AC 161 ms
32,500 KB
testcase_13 AC 166 ms
32,632 KB
testcase_14 AC 77 ms
19,384 KB
testcase_15 AC 28 ms
10,496 KB
testcase_16 AC 110 ms
24,756 KB
testcase_17 AC 33 ms
12,032 KB
testcase_18 AC 125 ms
27,540 KB
testcase_19 AC 153 ms
31,204 KB
testcase_20 AC 69 ms
18,436 KB
testcase_21 AC 144 ms
30,792 KB
testcase_22 AC 109 ms
25,432 KB
testcase_23 AC 63 ms
17,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = sorted([int(a) for a in input().split()])
# X = sum(A[N//2:])
# Y = -sum(A[:N//2])
# print(X - Y)
print(sum(A))
0