結果
問題 |
No.1374 Absolute Game
|
ユーザー |
![]() |
提出日時 | 2021-02-05 23:20:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 101 ms / 2,000 ms |
コード長 | 139 bytes |
コンパイル時間 | 542 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 21,852 KB |
最終ジャッジ日時 | 2024-07-02 14:33:10 |
合計ジャッジ時間 | 3,328 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
N = int(input()) A = sorted([int(a) for a in input().split()]) print(max(-sum(A[::2])-abs(sum(A[1::2])), sum(A[::-2])-abs(sum(A[-2::-2]))))