結果
| 問題 |
No.2918 Divide Applicants Fairly
|
| ユーザー |
|
| 提出日時 | 2024-10-12 03:51:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 288 bytes |
| コンパイル時間 | 101 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 507,056 KB |
| 最終ジャッジ日時 | 2024-10-12 03:51:05 |
| 合計ジャッジ時間 | 3,791 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 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)