mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
12 lines
210 B
Python
12 lines
210 B
Python
def problem_p02994(input_data):
|
|
import numpy as np
|
|
|
|
n, l = [int(x) for x in input_data.split()]
|
|
|
|
x = np.arange(l, l + n)
|
|
|
|
y = np.abs(x)
|
|
|
|
x = np.delete(x, np.argmin(y))
|
|
|
|
return np.sum(x)
|