Buggy python submission (verdict: Runtime Error):
n, x, y = list(map(int,input().split()))
d = [0 for i in range(1,n)] 
for i in range(1,n+1):
  for j in range(1,i+1):
    d[min([j-i, abs(x-i) + 1 + abs(j-y), abs(y-i) + 1 + abs(j-x)])-1] += 1

for i in d:
  print(i)

Fixed submission:
n, x, y = list(map(int,input().split()))
d = [0 for i in range(n-1)] 
for i in range(1,n+1):
  for j in range(i+1,n+1):
    d[min([j-i, abs(x-i) + 1 + abs(j-y), abs(y-i) + 1 + abs(j-x)])-1] += 1

for i in d:
  print(i)

Buggy python submission (verdict: Time Limit Exceeded):
n, x, y = list(map(int,input().split()))
d = [0 for i in range(1,n)] 
for i in range(1,n+1):
  for j in range(1,n+1):
    if i < j:
      d[min([j-i, abs(x-i) + 1 + abs(j-y), abs(y-i) + 1 + abs(j-x)])-1] += 1

for i in d:
  print(i)

Fixed submission:
n, x, y = list(map(int,input().split()))
d = [0 for i in range(n-1)] 
for i in range(1,n+1):
  for j in range(i+1,n+1):
    d[min([j-i, abs(x-i) + 1 + abs(j-y), abs(y-i) + 1 + abs(j-x)])-1] += 1

for i in d:
  print(i)

Buggy python submission (verdict: Time Limit Exceeded):
def band(i, j, x, y):
  res = 0
  res = [j-i, abs(x-i) + 1 + abs(j-y), abs(y-i) + 1 + abs(j-x)]
  return min(res)

d = {}
n, x, y = list(map(int,input().split()))
for i in range(1, n+1):
  for j in range(1, n+1):
    if i < j:
      #print(str(i)+','+str(j)+'  '+str(band(i, j, x, y)))
      if band(i, j, x, y) in d:
        d[band(i, j, x, y)] += 1
      else:
        d[band(i, j, x, y)] = 1
for i in range(1,n):
  if i in d:
    print(d[i])
  else:
    print('0')

Fixed submission:
n, x, y = list(map(int,input().split()))
d = [0 for i in range(n-1)] 
for i in range(1,n+1):
  for j in range(i+1,n+1):
    d[min([j-i, abs(x-i) + 1 + abs(j-y), abs(y-i) + 1 + abs(j-x)])-1] += 1

for i in d:
  print(i)

Buggy python submission (verdict: Time Limit Exceeded):
def band(i, j, x, y):
  res = 0
  if i <= x and y <= j:#p1
    res += x - i
    res += 1
    res += j - y
  elif i <= x and j <= x:#p2
    res += j - i
  elif y <= i and y <= j:#p3
    res += j - i
  else:
    if i <= x and x <= j and j <= y:#p4
      res += band(i, x, x, y)
      if j - x <= y - j + 1:
        res += j - x
      else:
        res += y - j + 1
    elif x <= i and i <= y and y <= j:#p5
      if y - i <= i - x + 1:
        res += y - i
      else:
        res += i - x + 1
      res += band(y, j, x, y)
    elif x <= i and i <= y and x <= j and j <= y:#p6
      if j - i <= i - x + y - j + 1:
        res += j - i
      else:
        res += i - x + y - j + 1
  return res

d = {}
n, x, y = list(map(int,input().split()))
for i in range(1, n+1):
  for j in range(1, n+1):
    if i < j:
      #print(str(i)+','+str(j)+'  '+str(band(i, j, x, y)))
      if band(i, j, x, y) in d:
        d[band(i, j, x, y)] += 1
      else:
        d[band(i, j, x, y)] = 1
for i in range(1,n):
  if i in d:
    print(d[i])
  else:
    print('0')

Fixed submission:
n, x, y = list(map(int,input().split()))
d = [0 for i in range(n-1)] 
for i in range(1,n+1):
  for j in range(i+1,n+1):
    d[min([j-i, abs(x-i) + 1 + abs(j-y), abs(y-i) + 1 + abs(j-x)])-1] += 1

for i in d:
  print(i)

Buggy python submission (verdict: Time Limit Exceeded):
def band(i, j, x, y):
  res = 0
  if i <= x and y <= j:#p1
    res += x - i
    res += 1
    res += j - y
  elif i <= x and j <= x:#p2
    res += j - i
  elif y <= i and y <= j:#p3
    res += j - i
  else:
    if i <= x and x <= j and j <= y:#p4
      res += band(i, x, x, y)
      if j - x <= y - j + 1:
        res += j - x
      else:
        res += y - j + 1
    elif x <= i and i <= y and y <= j:#p5
      if y - i <= i - x + 1:
        res += y - i
      else:
        res += i - x + 1
      res += band(y, j, x, y)
    elif x <= i and i <= y and x <= j and j <= y:#p6
      if j - i <= i - x + y - j + 1:
        res += j - i
      else:
        res += i - x + y - j + 1
  return res

d = {}
n, x, y = list(map(int,input().split()))
for i in range(1, n+1):
  for j in range(1, n+1):
    if i < j:
      #print(str(i)+','+str(j)+'  '+str(band(i, j, x, y)))
      if band(i, j, x, y) in d:
        d[band(i, j, x, y)] += 1
      else:
        d[band(i, j, x, y)] = 1
d2 = sorted(d.items())
for i in range(1,n):
  if i in d:
    print(d[i])
  else:
    print('0')

Fixed submission:
n, x, y = list(map(int,input().split()))
d = [0 for i in range(n-1)] 
for i in range(1,n+1):
  for j in range(i+1,n+1):
    d[min([j-i, abs(x-i) + 1 + abs(j-y), abs(y-i) + 1 + abs(j-x)])-1] += 1

for i in d:
  print(i)