count distance
lqdojtocdovodoi
plain_text
2 years ago
204 B
13
Indexable
n = int(input())
ds = list(map(int,input().split()))
d = max(ds)-min(ds)
for i in ds:
if i>d:
print("-"+str(i-d))
if i<d:
print("+"+str(d-i))
if i==d:
print(0)Editor is loading...
Leave a Comment