結果
問題 | No.1374 Absolute Game |
ユーザー | 👑 H20 |
提出日時 | 2021-02-05 21:54:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 176 bytes |
コンパイル時間 | 337 ms |
コンパイル使用メモリ | 87,296 KB |
実行使用メモリ | 93,332 KB |
最終ジャッジ日時 | 2023-09-15 08:05:44 |
合計ジャッジ時間 | 4,242 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,572 KB |
testcase_01 | AC | 71 ms
71,152 KB |
testcase_02 | AC | 70 ms
71,312 KB |
testcase_03 | AC | 70 ms
71,360 KB |
testcase_04 | AC | 68 ms
71,256 KB |
testcase_05 | AC | 71 ms
71,696 KB |
testcase_06 | AC | 70 ms
71,472 KB |
testcase_07 | AC | 69 ms
71,316 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
ソースコード
N = int(input()) C = list(map(int, input().split())) C.sort() print(max(abs(abs(sum(C[N//2+1:]))-abs(sum(C[:N//2+1]))), abs(abs(sum(C[N//2:]))-abs(sum(C[:N//2])))))