Buggy python submission (verdict: Runtime Error):
import math
def cmb(n, r):
    return math.factorial(n)/(math.factorial(r)*math.factorial(n-r) )

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
    if n-k+1 >= i:
        ans =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
    else:
        ans = 0
    print(ans)

Fixed submission:
import math
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
  if n-k+1 >= i:
    ans =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
  else:
    ans = 0
  print(ans)

Buggy python submission (verdict: Runtime Error):
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
  if n-k+1 >= i:
    ans =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
  else:
    ans
  print(ans)

Fixed submission:
import math
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
  if n-k+1 >= i:
    ans =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
  else:
    ans = 0
  print(ans)

Buggy python submission (verdict: Runtime Error):
    def cmb(n, r):
      n_ = math.factorial(n)
      n_r_ = math.factorial(n-r) 
      r_ = math.factorial(r)
      return n_//(r_*n_r_)
     
    n,k = list(map(int, input().split(" ")))
     
    for i in range(1, k+1):
      if n-k+1 >= i:
        ni =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
        print(int(ni))
      else:
        print(0)

Fixed submission:
import math
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
  if n-k+1 >= i:
    ans =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
  else:
    ans = 0
  print(ans)

Buggy python submission (verdict: Runtime Error):
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
  if n-k+1 >= i:
    ni =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
    print(int(ni))
    else:
      print(0)

Fixed submission:
import math
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
  if n-k+1 >= i:
    ans =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
  else:
    ans = 0
  print(ans)

Buggy python submission (verdict: Runtime Error):
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)
 
i = list(map(int, input().split(" ")))
k = i[1]
n = i[0]
a = 1000000007
 
for i in range(1, k+1):
  if n-k+1 >= i:
  	ni =  cmb(n-k+1,i)*cmb(k-1,i-1)
  	print(int(ni%a))
  else:
    print(0)

Fixed submission:
import math
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
  if n-k+1 >= i:
    ans =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
  else:
    ans = 0
  print(ans)

Buggy python submission (verdict: Runtime Error):
import math
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

i = list(map(int, input().split(" ")))
k = i[1]
n = i[0]
a = 1000000007

for i in range(1, k+1):
  if n-k+1 > 0:
  	ni =  cmb(n-k+1,i)*cmb(k-1,i-1)
  	print(int(ni%a))
  else:
    print(0)

Fixed submission:
import math
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
  if n-k+1 >= i:
    ans =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
  else:
    ans = 0
  print(ans)

Buggy python submission (verdict: Runtime Error):
import math
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_/(r_*n_r_)

i = list(map(int, input().split(" ")))
k = i[1]
n = i[0]
a = 1000000007

for i in range(1, k+1):
  ni =  cmb(n-k+1,i)*cmb(k-1,i-1)
  print(int(ni%a))

Fixed submission:
import math
def cmb(n, r):
  n_ = math.factorial(n)
  n_r_ = math.factorial(n-r) 
  r_ = math.factorial(r)
  return n_//(r_*n_r_)

n,k = list(map(int, input().split(" ")))

for i in range(1, k+1):
  if n-k+1 >= i:
    ans =  cmb(n-k+1,i)*cmb(k-1,i-1)%(10**9+7)
  else:
    ans = 0
  print(ans)