結果
問題 |
No.1687 What the Heck?
|
ユーザー |
|
提出日時 | 2021-09-26 16:30:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 154 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 30,124 KB |
最終ジャッジ日時 | 2024-07-05 15:39:39 |
合計ジャッジ時間 | 2,401 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 1 WA * 17 |
ソースコード
n = int(input()) p = list(map(int, input().split())) if len(p) == 1: print(0) else: l = len(p)//2 p.sort() print(sum(p[l:]) - sum(p[:l]))