結果
| 問題 | No.2918 Divide Applicants Fairly |
| ユーザー |
|
| 提出日時 | 2024-10-12 03:50:19 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
MLE
不安定
|
| 実行時間 | - |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 864,080 KB |
| 最終ジャッジ日時 | 2026-09-14 11:10:57 |
| 合計ジャッジ時間 | 6,199 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | MLE * 1 -- * 60 |
ソースコード
N = int(input())
R = list(map(int, input().split()))
L = set()
for r in R:
if r == 0: continue
LL = L.copy()
for l in L:
LL.add(l + r)
LL.add(l - r)
LL.add(r)
LL.add(-r)
L = LL.copy()
ans = 10**10
for l in L:
ans = min(ans, abs(l))
print(ans)