lab
"I’ve set up a new coding environment using Neovim with the NVChad configuration on Arch Linux, paired with the Hyprland window manager."
This media is not supported in your browser
VIEW IN TELEGRAM
"My Neovim setup now has a debugger. It’s unstoppable."
❤2
lab
"My Neovim setup now has a debugger. It’s unstoppable."
Media is too big
VIEW IN TELEGRAM
گول این تگارو نخورید. یکی دوتا تابع مکس بیشتر نیاز نداشت!
Updated:
problem link
n, l = map(int, input().split())
arr = list(map(int, input().split()))
arr.sort()
best = 0
for i in range(len(arr)):
if arr[i] - arr[i-1] > best:
best = arr[i] - arr[i-1]
print(f"{max(max(arr[0], best/2), l - arr[-1]):.10f}")
Updated:
n, l = map(int, input().split())
arr = list(map(int, input().split()))
arr.sort()
best = max(arr[i] - arr[i - 1] for i in range(len(arr)))
print(f"{max(max(arr[0], best/2), l - arr[-1]):.10f}")
problem link
👍1