ZhenlongDai/ACPR huggingface dataset:
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
input_lines = input()
input_i = input_lines.split(" ")
print(int(input_i[0])*int(input_i[1]))
print((int(input_i[0])+int(input_i[1]))*2)

Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
-12
-8


Fixed submission (verdict: Accepted):
input_lines = input()
input_i = input_lines.split(" ")
print(int(input_i[0])*int(input_i[1]),end=" ")
print((int(input_i[0])+int(input_i[1]))*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
input = input().split(' ')
a = int(input[0])
b = int(input[1])
x = a * b
y = (a + b) * 2
print("{} {}".format(a, b))

Failing test case input:
4 122

Expected output:
488 252


Actual output:
4 122


Fixed submission (verdict: Accepted):
input = input().split(' ')
a = int(input[0])
b = int(input[1])
x = a * b
y = (a + b) * 2
print("{} {}".format(x, y))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
item = [int(i) for i in input().split()]
print(item[0]*item[1])

Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
32


Fixed submission (verdict: Accepted):
item = [int(i) for i in input().split()]
print(item[0]*item[1],2*(item[0]+item[1]))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
def rect(a,b):
    return a*2,b*4  
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])

area,perimeter = rect(a,b)
print(area,perimeter)


Failing test case input:
4 122

Expected output:
488 252


Actual output:
8 488


Fixed submission (verdict: Accepted):
def rect(a,b):
    return a*b,2*(a+b)  
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])

area,perimeter = rect(a,b)
print(area,perimeter)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
s = input()
l = s.split(" ")
a = int(l[0])
b = int(l[1])
print(a*b)

Failing test case input:
-16 0

Expected output:
0 -32


Actual output:
0


Fixed submission (verdict: Accepted):
s = input()
l = s.split(" ")
a = int(l[0])
b = int(l[1])
print(a*b, 2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int,input().split())
M = a * b
print(M)

Failing test case input:
4 23

Expected output:
92 54


Actual output:
92


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())
M = a * b
S = 2 * (a + b)
print(M,S)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = (int(x) for x in input().split())
area = float(a*b)/2
perimeter = (a+b)*2
print(area, perimeter)



Failing test case input:
6 39

Expected output:
234 90


Actual output:
117.0 90


Fixed submission (verdict: Accepted):
a, b = (int(x) for x in input().split())
area = a*b
perimeter = (a+b)*2
print(area, perimeter)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input().split())
print(a,b)

Failing test case input:
-16 0

Expected output:
0 -32


Actual output:
-16 0


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(a*b,2*(a+b))
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input("input:").split())

print(a*b,a+a+b+b)

Failing test case input:
-16 0

Expected output:
0 -32


Actual output:
input:0 -32


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(a*b,a+a+b+b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = [float(i) for i in input().split()]
s = a * b
l = (a + b) * 2
print (s, l)

Failing test case input:
4 77

Expected output:
308 162


Actual output:
308.0 162.0


Fixed submission (verdict: Accepted):
a, b = [int(i) for i in input().split()]
s = a * b
l = (a + b) * 2
print(s, l)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = [int(i) for i in input().split( )]
print(a+b,(a+b)*2)

Failing test case input:
0 47

Expected output:
0 94


Actual output:
47 94


Fixed submission (verdict: Accepted):
a,b=[int(i) for i in input().split()]
print(a*b,(a+b)*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int, input().split())
print(a*b)

Failing test case input:
1 47

Expected output:
47 96


Actual output:
47


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
print(a*b, a+a+b+b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
print(a * b, sep=' ')
print(2 * a * b)

Failing test case input:
1 57

Expected output:
57 116


Actual output:
57
114


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(a * b, end=' ')
print(2 * (a + b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a=input().split(" ")
print(int(a[0])*int(a[1]))

Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
16


Fixed submission (verdict: Accepted):
a=input().split(" ")
print(int(a[0])*int(a[1]),2*int(a[0])+2*int(a[1]))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = [int(i) for i in input().split()]
print(a, b)

Failing test case input:
1 60

Expected output:
60 122


Actual output:
1 60


Fixed submission (verdict: Accepted):
a, b = [int(i) for i in input().split()]
print(a * b, (a + b) * 2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
print(a * b, end=' ')
print(2 * a * b)

Failing test case input:
6 39

Expected output:
234 90


Actual output:
234 468


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(a * b, end=' ')
print(2 * (a + b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
item = [int(i) for i in input().split()]
print("{0} {1}",item[0]*item[1])

Failing test case input:
4 23

Expected output:
92 54


Actual output:
{0} {1} 92


Fixed submission (verdict: Accepted):
item = [int(i) for i in input().split()]
print(item[0]*item[1],2*(item[0]+item[1]))
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x, y = [int(i) for i in input().split()]

s = x * y
l = (x + y) * 2
print("x " + "l")

Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
x l


Fixed submission (verdict: Accepted):
x, y = [int(i) for i in input().split()]

s = x * y
l = (x + y) * 2
print(str(s)+" "+ str(l))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
import sys

a,b = map(int, sys.stdin.readline().rstrip().split(' '))
print(a*b)

Failing test case input:
4 39

Expected output:
156 86


Actual output:
156


Fixed submission (verdict: Accepted):
import sys

a,b = map(int, sys.stdin.readline().rstrip().split(' '))
print("{} {}".format(a*b,(a+b)*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
item = [int(i) for i in input().split()]
print("{0} {1}",item[0]*item[1],2*(item[0]+item[1]))

Failing test case input:
1 122

Expected output:
122 246


Actual output:
{0} {1} 122 246


Fixed submission (verdict: Accepted):
item = [int(i) for i in input().split()]
print(item[0]*item[1],2*(item[0]+item[1]))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b=map(int, input().split())
print(a, b)
x=a*b
y=2*a+2*b
print(x, y)


Failing test case input:
1 122

Expected output:
122 246


Actual output:
1 122
122 246


Fixed submission (verdict: Accepted):
a, b=map(int, input().split())
x=a*b
y=2*a+2*b
print(x, y)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int, input().split())
print(a*b)


Failing test case input:
4 23

Expected output:
92 54


Actual output:
92


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
m= a*b
l = 2*a + 2*b
print(m,l)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
s = a*b
l = 2*a + 2*b
print(str(a) + " " + str(b))

Failing test case input:
1 47

Expected output:
47 96


Actual output:
1 47


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
s = a*b
l = 2*(a+b)
print(str(s) + " " + str(l))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
numbers = input()
lines = numbers.split(" ")
a = int(lines[0])
b = int(lines[1])
print(a * b / 2)


Failing test case input:
4 39

Expected output:
156 86


Actual output:
78.0


Fixed submission (verdict: Accepted):
numbers = input()
lines = numbers.split(" ")
a = int(lines[0])
b = int(lines[1])
area = str(a * b)
line = str(2 * (a + b))

print(area + " " + line)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
def rect(a,b):
    return a * b, b+2 
    
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])

area,perimeter = rect(a,b)
print(area,perimeter)


Failing test case input:
4 39

Expected output:
156 86


Actual output:
156 41


Fixed submission (verdict: Accepted):
def rect(a,b):
    return a*b,2*(a+b)  
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])

area,perimeter = rect(a,b)
print(area,perimeter)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().strip().split())
c = (a+b)*2
s = a*b
print("%d %d" % (c,s))

Failing test case input:
1 122

Expected output:
122 246


Actual output:
246 122


Fixed submission (verdict: Accepted):
a,b = map(int,input().strip().split())
c = (a+b)*2
s = a*b
print("%d %d" % (s,c))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):


a,b = input().split()
m = int(a) * int(b)
s = int(a) * 2 + int(b) * 2
print(s,m)

Failing test case input:
4 39

Expected output:
156 86


Actual output:
86 156


Fixed submission (verdict: Accepted):


a,b = input().split()
m = int(a) * 2 + int(b) * 2
s = int(a) * int(b)
print(s,m)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x, y = [int(i) for i in input().split()]
print('a')


Failing test case input:
4 122

Expected output:
488 252


Actual output:
a


Fixed submission (verdict: Accepted):
x, y = [int(i) for i in input().split()]
print(x * y, (x + y) * 2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x,y=map(int, input().split())
a = int(x * y)



print(int(a))

Failing test case input:
1 122

Expected output:
122 246


Actual output:
122


Fixed submission (verdict: Accepted):
x,y=map(int, input().split())
a = int(x * y)
b=int(2*x+2*y)


print(a,b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
















a,b=map(int,input().split())




print("%f ."%(a*b));
print("%f ."%(2*a+2*b));

Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
-12.000000 .
-8.000000 .


Fixed submission (verdict: Accepted):
















a,b=map(int,input().split())




print("%d %d"%(a*b, 2*a+2*b));

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
input_height_width = input()
height, width = [int(x) for x in input_height_width.split()]
print(height * width)

Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
16


Fixed submission (verdict: Accepted):
values = input()
height, width = [int(x) for x in values.split()]
print(height * width,  height * 2 + width * 2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
"{} {}".format(a*b, (a+b)*2)


Failing test case input:
-16 0

Expected output:
0 -32


Actual output:

Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print("{} {}".format(a*b, (a+b)*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
i = list(map(int,input().split()))
a = i[0]*i[1]
b = 2*(i[0]*i[1])
print("{0} {1}".format(a,b))


Failing test case input:
1 122

Expected output:
122 246


Actual output:
122 244


Fixed submission (verdict: Accepted):
i = list(map(int,input().split()))
a = i[0]*i[1]
b = 2*(i[0]+i[1])
print("{0} {1}".format(a,b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a=input()
b,c =a.split()
print(int(b)*int(c))
print(int(b)*2+int(c)*2)

Failing test case input:
1 47

Expected output:
47 96


Actual output:
47
96


Fixed submission (verdict: Accepted):
a=input()
b,c =a.split()
print(int(b)*int(c),end=" ")
print(int(b)*2+int(c)*2)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = input().split()
print (int(a)*int(b))


Failing test case input:
1 57

Expected output:
57 116


Actual output:
57


Fixed submission (verdict: Accepted):
a,b = input().split()
print ( int(a)*int(b), 2*(int(a)+int(b)) )

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
n = input()
n = n.split()
n = list(map(int, n))


print(n[0] * n[1])



Failing test case input:
4 122

Expected output:
488 252


Actual output:
488


Fixed submission (verdict: Accepted):
n = input()
n = n.split()
n = list(map(int, n))


print(str(n[0] * n[1]) + " " + str((n[0] + n[1]) * 2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
import re
numbers = input()
lines = re.split(" ", numbers)
a = int(lines[0])
b = int(lines[1])

print(a * b / 2)


Failing test case input:
4 77

Expected output:
308 162


Actual output:
154.0


Fixed submission (verdict: Accepted):
numbers = input()
lines = numbers.split(" ")
a = int(lines[0])
b = int(lines[1])
area = str(a * b)
line = str(2 * (a + b))

print(area + " " + line)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
l = input().split()



l = list(map(int,l))

a = l[0]*l[1]
b = 2*(l[0]*l[1])

print(a,b)


Failing test case input:
4 23

Expected output:
92 54


Actual output:
92 184


Fixed submission (verdict: Accepted):
l = input().split()



l = list(map(int,l))

a = l[0]*l[1]
b = 2*(l[0]+l[1])

print(a,b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
s = input().split()
print((int(s[0])+int(s[1]))*2,int(s[0])*int(s[1]))


Failing test case input:
1 122

Expected output:
122 246


Actual output:
246 122


Fixed submission (verdict: Accepted):
s = input().split()
print(int(s[0])*int(s[1]),(int(s[0])+int(s[1]))*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input(). split())
print(a, b)
print(a*b, a+a+b+b)


Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
-16 -2
32 -36


Fixed submission (verdict: Accepted):
a, b = map(int, input(). split())
print(a*b, a+a+b+b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
tateyoko = input().split()

print(tateyoko[0])
print(tateyoko[1])
area = int(tateyoko[0]) * int(tateyoko[1])
circuit = int(tateyoko[0]) * 2 + int(tateyoko[1]) * 2

print(str(area) + ' ' + str(circuit))


Failing test case input:
-16 0

Expected output:
0 -32


Actual output:
-16
0
0 -32


Fixed submission (verdict: Accepted):
tateyoko = input().split()

area = int(tateyoko[0]) * int(tateyoko[1])
circuit = int(tateyoko[0]) * 2 + int(tateyoko[1]) * 2

print(str(area) + ' ' + str(circuit))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x, y = map(int, input().split())
x*y, 2*(x+y)


Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:

Fixed submission (verdict: Accepted):
x, y = map(int, input().split())
print(x*y, 2*(x+y))
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a=input().split()
b=[float(i) for i in a]
print(b[0]*b[1],2*(b[0]+b[1]))


Failing test case input:
4 122

Expected output:
488 252


Actual output:
488.0 252.0


Fixed submission (verdict: Accepted):
a=input().split()
b=[int(i) for i in a]
print(b[0]*b[1],2*(b[0]+b[1]))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):


x = input(int()).split()
a = x[0]
b = x[1]
m = int(a) * int(b)
s = int(a) * 2 + int(b) * 2
print(s,m)

Failing test case input:
6 39

Expected output:
234 90


Actual output:
090 234


Fixed submission (verdict: Accepted):


a,b = input().split()
m = int(a) * 2 + int(b) * 2
s = int(a) * int(b)
print(s,m)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
tateyoko = input().split()

print(tateyoko[0])
print(tateyoko[1])
area = int(tateyoko[0]) * int(tateyoko[1])
circuit = int(tateyoko[0]) ** 2 + int(tateyoko[1]) ** 2

print(str(area) + ' ' + str(circuit))


Failing test case input:
1 47

Expected output:
47 96


Actual output:
1
47
47 2210


Fixed submission (verdict: Accepted):
tateyoko = input().split()

area = int(tateyoko[0]) * int(tateyoko[1])
circuit = int(tateyoko[0]) * 2 + int(tateyoko[1]) * 2

print(str(area) + ' ' + str(circuit))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
numbers = input()
lines = numbers.split(" ")
a = int(lines[0])
b = int(lines[1])
print(a * b)


Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
32


Fixed submission (verdict: Accepted):
numbers = input()
lines = numbers.split(" ")
a = int(lines[0])
b = int(lines[1])
area = str(a * b)
line = str(2 * (a + b))

print(area + " " + line)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
def rect (a,b):
    return a*2,b*4 
    
s=input()
x=s.split()
a= int(x[0])
b=int (x[1])

area,perimeter=rect(a,b)
print(area,perimeter)


Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
-32 -4


Fixed submission (verdict: Accepted):
def rect (a,b):
    return a*b,b*2+a*2 
    
s=input()
x=s.split()
a= int(x[0])
b=int (x[1])

area,perimeter=rect(a,b)
print(area,perimeter)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,"4 2".split())
print(a*b,(a+b)*2)

Failing test case input:
6 39

Expected output:
234 90


Actual output:
8 12


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(a*b,(a+b)*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
s = a*b
l = 2*(a+b)
print(str(a) + " " + str(b))

Failing test case input:
4 23

Expected output:
92 54


Actual output:
4 23


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
s = a*b
l = 2*(a+b)
print(str(s) + " " + str(l))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())
c = a * b
d = 2 * (a + b)
print('{} {}'.format(a,d)) 

Failing test case input:
1 47

Expected output:
47 96


Actual output:
1 96


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c = a * b
d = 2 * (a + b)
print('{} {}'.format(c,d))
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x = input()
x = x.split()
a = int(x[0])
b = int(x[1])
print(a*2,b*2)


Failing test case input:
1 60

Expected output:
60 122


Actual output:
2 120


Fixed submission (verdict: Accepted):
x = input()
x = x.split()
a = int(x[0])
b = int(x[1])
print(a*b,a*2 + b*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b= map(int, input().split())

print (a*b), (a*2 + b*2)


Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
-12


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
c=a*b
d=a*2+b*2
print(c, d)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int,input().split())
M = a * b
S = a + b
print(M,S)

Failing test case input:
1 47

Expected output:
47 96


Actual output:
47 48


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())
M = a * b
S = 2 * (a + b)
print(M,S)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
num = list(map(int,input().split()))

print("%d %d" % (num[0]+num[1],num[0]+num[1]))



Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
-18 -18


Fixed submission (verdict: Accepted):
num = list(map(int,input().split()))

print("%d %d" % (num[0]*num[1],(num[0]+num[1])*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):

nums = input().split(' ')
h1 = int(nums[0])
h2 = int(nums[1])
print( h1*h2 ),
print( 2*(h1+h2) )

Failing test case input:
1 57

Expected output:
57 116


Actual output:
57
116


Fixed submission (verdict: Accepted):
nums = input().split(' ')
h1 = int(nums[0])
h2 = int(nums[1])
print( h1*h2,  2*(h1+h2) )

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
s = input()
x = s.split()

a = int(x[0])
b = int(x[1])


Failing test case input:
-16 0

Expected output:
0 -32


Actual output:

Fixed submission (verdict: Accepted):
s = input()
x = s.split()

a = int(x[0])
b = int(x[1])

print(a*b,2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = [int(i) for i in input().split()]
print(a, b)

Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
-16 -1


Fixed submission (verdict: Accepted):
a, b = [int(i) for i in input().split()]
print(a * b, (a + b) * 2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = [int(s) for s in input().split()]
print(a * b)
print(2 * (a + b))

Failing test case input:
4 122

Expected output:
488 252


Actual output:
488
252


Fixed submission (verdict: Accepted):
a, b = [int(s) for s in input().split()]
print(a * b, 2 * (a + b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = [int(i) for i in input().split()]
print(a*b)
print((a+b)*2) 

Failing test case input:
1 122

Expected output:
122 246


Actual output:
122
246


Fixed submission (verdict: Accepted):
a,b = [int(i) for i in input().split()]
print(a*b,a*2+b*2)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
line=input().split()
a=int(line[0])
b=int(line[1])
print(a*b)
print((2*a)+(2*b))


Failing test case input:
4 77

Expected output:
308 162


Actual output:
308
162


Fixed submission (verdict: Accepted):
line=input().split()
a=int(line[0])
b=int(line[1])
print(a*b,2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
data = input()
len = data.split()
ans = int(len[0]) * int(len[1])
print('{0}'.format(ans))

Failing test case input:
-16 0

Expected output:
0 -32


Actual output:
0


Fixed submission (verdict: Accepted):
data = input()
len = data.split()
ans0 = int(len[0]) * int(len[1])
ans1 = int(len[0]) *2 + int(len[1])*2
print('{0} {1}'.format(ans0, ans1))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x, y = input().split()

a = int(x) * int(y)
b = int(x)**2 + int(y)**2
print("{} {}".format(a, b))

Failing test case input:
4 122

Expected output:
488 252


Actual output:
488 14900


Fixed submission (verdict: Accepted):
x, y = input().split()

a = int(x) * int(y)
b = int(x)*2 + int(y)*2
print("{} {}".format(a, b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = list(map(int, input().split(' ')))
print(a * b)

Failing test case input:
1 122

Expected output:
122 246


Actual output:
122


Fixed submission (verdict: Accepted):
a, b = list(map(int, input().split(' ')))
print('{} {}'.format(a * b, 2*a + 2*b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x = list(map(float, input().split()))
print(x[0]*x[1], 2*(x[0]+x[1]))

Failing test case input:
4 39

Expected output:
156 86


Actual output:
156.0 86.0


Fixed submission (verdict: Accepted):
x = list(map(int, input().split()))
print(x[0]*x[1], 2*(x[0]+x[1]))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())
c = a * b
d = 2 * (a + b)
print('{} {}'.format(a,b)) 

Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
-16 -1


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c = a * b
d = 2 * (a + b)
print('{} {}'.format(c,d))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
l = list(map(int,input().split()))
print(l[0] * l[1])

Failing test case input:
6 39

Expected output:
234 90


Actual output:
234


Fixed submission (verdict: Accepted):
l = list(map(int,input().split()))
print(l[0] * l[1],2*(l[0] + l[1]))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())

print(a*b)

Failing test case input:
4 39

Expected output:
156 86


Actual output:
156


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())

print(a*b, a*2+b*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())
print(int(a) * int(b))

Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
32


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
c = a + b
print(int(a) * int(b),c * 2)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):


nums=list(map(int,input().split()))

a=nums[0]
b=nums[1]

print ((a+b)*2,a*b)

Failing test case input:
4 39

Expected output:
156 86


Actual output:
86 156


Fixed submission (verdict: Accepted):


nums=list(map(int,input().split()))

a=nums[0]
b=nums[1]

print (a*b,(a+b)*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
print(a * b)



Failing test case input:
1 60

Expected output:
60 122


Actual output:
60


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(a * b, a * 2 + b * 2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input().split())

print('面積',a*b,'周の長さ',2*a+2*b)



Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
面積 -12 周の長さ -8


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())

print(a*b,2*a+2*b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
__author__= 'CIPHER'

str = input()
numList = str.split(' ')
numList = [ int(x) for x in numList]

result = 1
for x in numList:
    result *= x
print(result)

Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
32


Fixed submission (verdict: Accepted):
__author__= 'CIPHER'

str = input()
numList = str.split(' ')
numList = [ int(x) for x in numList]

result = 1
length = 0
for x in numList:
    result *= x
    length += x

print(result,2*length)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
import sys

data = sys.stdin.readline().strip().split(' ')
a = int(data[0])
b = int(data[1])
print('%d %d' % (a * b, (a + 2) * 2))

Failing test case input:
0 47

Expected output:
0 94


Actual output:
0 4


Fixed submission (verdict: Accepted):
import sys

data = sys.stdin.readline().strip().split(' ')
a = int(data[0])
b = int(data[1])
print('%d %d' % (a * b, (a + b) * 2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())
print(a+a+b+b,a*b)




Failing test case input:
4 39

Expected output:
156 86


Actual output:
86 156


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
print(a*b,a+a+b+b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x = list(map(float, input().split()))
print(x[0]*x[1]), 2*(x[0]+x[1])

Failing test case input:
1 122

Expected output:
122 246


Actual output:
122.0


Fixed submission (verdict: Accepted):
x = list(map(int, input().split()))
print(x[0]*x[1], 2*(x[0]+x[1]))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = input().split()
a = int(a)
b = int(b)
print(a * b)

Failing test case input:
4 23

Expected output:
92 54


Actual output:
92


Fixed submission (verdict: Accepted):
a, b = input().split()
a = int(a)
b = int(b)
print(a*b, a*2 + b*2)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):


x = input('>').split()

y = list(map(int,x))

a = y[0]
b = y[1]

c = a*b
d = (a+b)*2

print(c,d)


Failing test case input:
1 122

Expected output:
122 246


Actual output:
>122 246


Fixed submission (verdict: Accepted):


x = input()

y = list(map(int,x.split()))

a = y[0]
b = y[1]

c = a*b
d = (a+b)*2

print(c,d)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = [int(n) for n in input().split()]
print("{} {}".format(pow(a+b, 2), 2*(a+b)))

Failing test case input:
4 23

Expected output:
92 54


Actual output:
729 54


Fixed submission (verdict: Accepted):
a, b = [int(n) for n in input().split()]
print("{} {}".format(a*b, (a+b)*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())
print(a+a+b+b)
print(a*b)



Failing test case input:
1 47

Expected output:
47 96


Actual output:
96
47


Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
print(a*b,a+a+b+b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x, y = [int(i) for i in input().split()]
print(x * y)


Failing test case input:
1 60

Expected output:
60 122


Actual output:
60


Fixed submission (verdict: Accepted):
x, y = [int(i) for i in input().split()]
print(x * y, (x + y) * 2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
print(a * b)

Failing test case input:
4 122

Expected output:
488 252


Actual output:
488


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(a * b, 2 * (a + b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
s = input().split()
print((int(s[0])+int(s[1]))*2)


Failing test case input:
4 39

Expected output:
156 86


Actual output:
86


Fixed submission (verdict: Accepted):
s = input().split()
print(int(s[0])*int(s[1]),(int(s[0])+int(s[1]))*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):


a, b = map(int, input().split())
print(a*b)


Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
32


Fixed submission (verdict: Accepted):


a, b = map(int, input().split())
print("{} {}".format(a*b, 2*(a+b)))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())
print(a*b)


Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
16


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().strip().split())
print("%d %d" % ((2*(a+b)),(a*b)))

Failing test case input:
4 77

Expected output:
308 162


Actual output:
162 308


Fixed submission (verdict: Accepted):
a,b = map(int,input().strip().split())
c = (a+b)*2
s = a*b
print("%d %d" % (s,c))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = (int(x) for x in input().split())
print(a*b)
print(2*a + 2*b)



Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
-12
-8


Fixed submission (verdict: Accepted):
a, b = (int(x) for x in input().split())
print(a*b, 2*a + 2*b)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
i = j = 0
n = ''
m = ''


line = input()

while line[i] != ' ':
    n = n + line[i]
    i += 1
    
while i < len(line):
    m = m + line[i]
    i += 1
    
n = int(n)
m = int(m)

print(n*m)

Failing test case input:
1 122

Expected output:
122 246


Actual output:
122


Fixed submission (verdict: Accepted):
i = j = 0
n = ''
m = ''


line = input()

while line[i] != ' ':
    n = n + line[i]
    i += 1
    
while i < len(line):
    m = m + line[i]
    i += 1
    
n = int(n)
m = int(m)

print(n*m,end=' ')
print(2*n+2*m)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())
print(a*b)



Failing test case input:
4 77

Expected output:
308 162


Actual output:
308


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
def main(arg):
    numbers = [int(x) for x in arg.split(" ")]
    s = numbers[0] * numbers[1]
    p = (numbers[0] + numbers[1]) * 2
    return s,p


if __name__ == '__main__':
    print(main(input()))

Failing test case input:
1 47

Expected output:
47 96


Actual output:
(47, 96)


Fixed submission (verdict: Accepted):
def main(arg):
    numbers = [int(x) for x in arg.split(" ")]
    s = numbers[0] * numbers[1]
    p = (numbers[0] + numbers[1]) * 2
    result = "{} {}".format(s,p)
    return result


if __name__ == '__main__':
    print(main(input()))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
num = list(map(int,input().split()))

print("%d %d" % (num[0]*num[1],num[0]+num[1]))



Failing test case input:
1 57

Expected output:
57 116


Actual output:
57 58


Fixed submission (verdict: Accepted):
num = list(map(int,input().split()))

print("%d %d" % (num[0]*num[1],(num[0]+num[1])*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input(). split())
x = a+a+b+b
y = a*b
print('長さ=', x,'面積=', y)


Failing test case input:
4 77

Expected output:
308 162


Actual output:
長さ= 162 面積= 308


Fixed submission (verdict: Accepted):
a, b = map(int, input(). split())
x = a*b
y = a*2+b+b
print(x, y)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = [int(i) for i in input().split()]
print(a*b)
print(a*2+b*2) 

Failing test case input:
4 77

Expected output:
308 162


Actual output:
308
162


Fixed submission (verdict: Accepted):
a,b = [int(i) for i in input().split()]
print(a*b,a*2+b*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
list = input().split()
x = int(list[0])
y = int(list[0])
print(x*y, x*2+y*2)

Failing test case input:
6 39

Expected output:
234 90


Actual output:
36 24


Fixed submission (verdict: Accepted):
list = input().split()
x = int(list[0])
y = int(list[1])
print(x*y, x*2+y*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
print(a*b, a+b)

Failing test case input:
1 122

Expected output:
122 246


Actual output:
122 123


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(a*b, 2*(a+b))
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
s = input()
input_str = s.split(" ")
x = int(input_str[0])
y = int(input_str[1])

print(x * y)

print(2 * (x + y))

Failing test case input:
1 60

Expected output:
60 122


Actual output:
60
122


Fixed submission (verdict: Accepted):
s = input()
input_str = s.split(" ")
x = int(input_str[0])
y = int(input_str[1])

print("{0} {1}".format(x * y, 2 * (x + y)))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input().split())
print(a*b)

Failing test case input:
4 39

Expected output:
156 86


Actual output:
156


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(a*b,2*a+2*b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a_b=input().split()
a=int(a_b[0])
b=int(a_b[1])
print(a*b)


Failing test case input:
4 23

Expected output:
92 54


Actual output:
92


Fixed submission (verdict: Accepted):
a_b=input().split()
a=int(a_b[0])
b=int(a_b[1])
print(str(a*b)+" "+str((a+b)*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x,y=map(int, input().split())

a = int(x * y)


print(a)

Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
16


Fixed submission (verdict: Accepted):
x,y=map(int, input().split())
a = int(x * y)
b=int(2*x+2*y)


print(a,b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
s = input()
x = s.split()

a = int(x[0])
b = int(x[1])

print(15 , 16)


Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
15 16


Fixed submission (verdict: Accepted):
s = input()
x = s.split()

a = int(x[0])
b = int(x[1])

print(a*b,2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = [float(i) for i in input().split()]
s = a * b
l = (a + b) * 2
print(s, l)

Failing test case input:
4 39

Expected output:
156 86


Actual output:
156.0 86.0


Fixed submission (verdict: Accepted):
a, b = [int(i) for i in input().split()]
s = a * b
l = (a + b) * 2
print(s, l)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a = input().split()
b = int(a[1])
a = int(a[0])

print(a*b)
print(2*(a+b))

Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
-12
-8


Fixed submission (verdict: Accepted):
a = input().split()
b = int(a[1])
a = int(a[0])

print(a*b, end=" ")
print(2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())

c = a*b
d = a*2 + b*2

print(c)

Failing test case input:
1 47

Expected output:
47 96


Actual output:
47


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(a*b,(a*2 + b*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = [int(i) for i in input().split()]
print(a+b,(a+b)*2)

Failing test case input:
1 122

Expected output:
122 246


Actual output:
123 246


Fixed submission (verdict: Accepted):
a,b=[int(i) for i in input().split()]
print(a*b,(a+b)*2)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):

numbers = list(map(int,input().split()))
print((numbers[0]+numbers[1])*2)

Failing test case input:
1 60

Expected output:
60 122


Actual output:
122


Fixed submission (verdict: Accepted):

numbers = list(map(int,input().split()))
print(str(numbers[0]*numbers[1])+" "+str((numbers[0]+numbers[1])*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x = input()
x = x.split(" ")

width = float(x[0])
height = float(x[1])

area = width * height
perimeter = width * 2 + height * 2

print("{0} {1}".format(area, perimeter))

Failing test case input:
0 47

Expected output:
0 94


Actual output:
0.0 94.0


Fixed submission (verdict: Accepted):
x = input()
x = x.split(" ")

width = int(x[0])
height = int(x[1])

area = width * height
perimeter = width * 2 + height * 2

print("{0} {1}".format(area, perimeter))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
__author__= 'CIPHER'

str = input()
numList = str.split(' ')
numList = [ int(x) for x in numList]

result = 1
for x in numList:
    result *= x

print(result)

Failing test case input:
6 39

Expected output:
234 90


Actual output:
234


Fixed submission (verdict: Accepted):
__author__= 'CIPHER'

str = input()
numList = str.split(' ')
numList = [ int(x) for x in numList]

result = 1
length = 0
for x in numList:
    result *= x
    length += x

print(result,2*length)
Problem: p02990
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
mod = 10**9+7

def Mod_Combination(n, k):
    p, q = 1, 1
    for i in range(n-k+1, n+1):
        p = (p * i) % mod
    for i in range(2, k+1):
        q = (q * i) % mod
    return p * pow(q, mod-2, mod) % mod

N, K = map(int, input().split())
M = N - K + 1
for i in range(1, K+1):
    print(Mod_Combination(M, i) * pow(i, K-i, mod) % mod)

Failing test case input:
677 4

Expected output:
674
680403
152410272
522274320


Actual output:
674
907204
152410272
522274320


Fixed submission (verdict: Accepted):
mod = 10**9+7

def Mod_Combination(n, k):
    p, q = 1, 1
    for i in range(n-k+1, n+1):
        p = (p * i) % mod
    for i in range(2, k+1):
        q = (q * i) % mod
    return p * pow(q, mod-2, mod) % mod

N, K = map(int, input().split())
M = N - K + 1
for i in range(1, K+1):
    print(Mod_Combination(M, i) * Mod_Combination(K-1, i-1) % mod)

Problem: p02990
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
def com(n,r,mod):
    k=min(r,n-r)
    C=1
    for i in range(1,k+1):
        C=(C*(n+1-i)*pow(i,mod-2,mod))%mod
    return C

n,k = map(int,input().split())
mod = 10 ** 9 + 7

for i in range(1, k + 1):
    ans = com(n - k + 1, i, mod) * com(k - 1, i - 1, mod)
    print(ans % mod)

Failing test case input:
14 15

Expected output:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0


Actual output:
1
14
91
364
1001
2002
3003
3432
3003
2002
1001
364
91
14
1


Fixed submission (verdict: Accepted):
def com(n,r,mod):
    k=min(r,n-r)
    C=1
    for i in range(1,k+1):
        C=(C*(n+1-i)*pow(i,mod-2,mod))%mod
    return C

n,k = map(int,input().split())
mod = 10 ** 9 + 7

for i in range(1, k + 1):
    if n - k +1 < i:
        print(0)
        continue
    ans = com(n - k + 1, i, mod) * com(k - 1, i - 1, mod)
    print(ans % mod)

Problem: p02990
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
MOD = 10**9 + 7
 
N,K = [int(s) for s in input().split()]
 
comb = [[1]]
for i in range(N + 1):
    comb.append([1])
    for j in range(i):
        comb[-1].append((comb[-2][j] + comb[-2][j + 1]) % MOD)
    comb[-1].append(1)
    
def combi(n,k):
  return comb[n][k] if n >= k else 1

for i in range(1,K+1):
    print((combi(N-K+1,i) * combi(K-1,i-1)) % MOD)

Failing test case input:
14 15

Expected output:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0


Actual output:
1
14
91
364
1001
2002
3003
3432
3003
2002
1001
364
91
14
1


Fixed submission (verdict: Accepted):
MOD = 10**9 + 7
 
N,K = [int(s) for s in input().split()]
 
comb = [[1]]
for i in range(N + 1):
    comb.append([1])
    for j in range(i):
        comb[-1].append((comb[-2][j] + comb[-2][j + 1]) % MOD)
    comb[-1].append(1)
    
def combi(n,k):
  return comb[n][k] if n >= k else 1

for i in range(1,K+1):
  if i <= N-K+1:
    print((combi(N-K+1,i) * combi(K-1,i-1)) % MOD)
  else:
    print(0)
Problem: p02990
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
MOD = 10 ** 9 + 7
FACT_MAX = 2001
fact = [1] * FACT_MAX
for i in range(1, FACT_MAX):
    fact[i] = fact[i - 1] * i % MOD
def comb(n, r):
    return 0 if n < r else fact[n] * pow(fact[n - r], MOD - 2, MOD) * pow(fact[r], MOD - 2, MOD) % MOD

N, K = map(int, input().split())
for i in range(1, K + 1):
    print(comb(N - K + 1, i) * comb(K - 1, i - 1))


Failing test case input:
156 14

Expected output:
143
131989
37220898
776681882
979390428
946763442
563160127
573722096
454373538
49225204
201707350
605122050
16294718
297353372


Actual output:
143
131989
37220898
4776681910
331979392745
873946769553
7563160176
128573722992
159454374651
43049225505
26201707532
605122050
9016294781
297353372


Fixed submission (verdict: Accepted):
MOD = 10 ** 9 + 7
FACT_MAX = 2001
fact = [1] * FACT_MAX
for i in range(1, FACT_MAX):
    fact[i] = fact[i - 1] * i % MOD
def comb(n, r):
    return 0 if n < r else fact[n] * pow(fact[n - r], MOD - 2, MOD) * pow(fact[r], MOD - 2, MOD) % MOD

N, K = map(int, input().split())
for i in range(1, K + 1):
    print(comb(N - K + 1, i) * comb(K - 1, i - 1) % MOD)

Problem: p02990
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
a = N-K+1
print(a)
for i in range(1,K):
  a = int(a / i / (i+1) * (N-K+1-i) * (K-i))  % 1000000007
  print(a)


Failing test case input:
1407 6

Expected output:
1402
4910505
583137972
952504286
760098256
861908546


Actual output:
1402
4910505
583137972
952504286
160098251
455241839


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
a = N-K+1
print(a)
for i in range(1,K):
  a = int(a * (N-K+1-i) * (K-i) 
  print(a % 1000000007)

Problem: p02990
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = list(map(int, input().split()))
lim = 1E9 + 7
C = [[1], [1,1]]

for i in range(2, n+10):
    C.append([1] + [(C[i-1][j-1] + C[i-1][j])%lim for j in range(1, i)] + [1])

for i in range(1, k+1):
    if n-k+1 < i  or k < i:
        
        print(0)
    else:
        
        print((C[n-k+1][i]*C[k-1][i-1])%lim)

Failing test case input:
263 4

Expected output:
260
101010
8686860
186043585


Actual output:
260.0
101010.0
8686860.0
186043585.0


Fixed submission (verdict: Accepted):
n, k = list(map(int, input().split()))
lim = 10**9 + 7
C = [[1], [1,1]]

for i in range(2, n+10):
    C.append([1] + [(C[i-1][j-1] + C[i-1][j])%lim for j in range(1, i)] + [1])

for i in range(1, k+1):
    if n-k+1 < i  or k < i:
        
        print(0)
    else:
        
        print((C[n-k+1][i]*C[k-1][i-1])%lim)

Problem: p02990
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
a = N-K+1
print(a)
for i in range(1,K):
  a = int(a * (N-K+1-i) * (K-i) / i / (i+1)) % 1000000007
  print(a)


Failing test case input:
203 7

Expected output:
197
115836
18823350
217243293
239193290
61674091
256660747


Actual output:
197
115836
18823350
217243293
289193290
701674091
190946440


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
a = N-K+1
print(a)
for i in range(1,K):
  a = int(a * (N-K+1-i) * (K-i) 
  print(a % 1000000007)
Problem: p02990
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

def nCk(n, k):
    return math.factorial(n) / (math.factorial(k) * math.factorial(n - k))

N, K = map(int, input().split())

for i in range(1, K + 1):
    try:
        print(int((nCk(N-K+1, i) * nCk(K-1, i-1)) % (10**9 + 7)))
    except:
        continue

Failing test case input:
14 15

Expected output:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0


Actual output:

Fixed submission (verdict: Accepted):
from math import factorial

N, K = map(int, input().split())
mod = 10**9 + 7

def cmb(n, r):
    if n >= r:
        return int(factorial(n) 
    else:
        return 0

for i in range(1, K+1):
    print(cmb(N-K+1, i) * cmb(K-1, i-1) % mod)

Problem: p02990
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
MOD = 10 ** 9 + 7
FACT_MAX = 2001
fact = [1] * FACT_MAX
for i in range(1, FACT_MAX):
    fact[i] = fact[i - 1] * i % MOD
def comb(n, r):
    return fact[n] * pow(fact[n - r], MOD - 2, MOD) * pow(fact[r], MOD - 2, MOD) % MOD

N, K = map(int, input().split())
for i in range(1, K + 1):
    print(comb(N - K + 1, i) * comb(K - 1, i - 1) % MOD)

Failing test case input:
14 15

Expected output:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0


Actual output:
337096023
344288967
672887138
428492316
834531990
241946795
932254145
987821738
265291257
430678686
976420817
759921588
67000538
309857899
793750677


Fixed submission (verdict: Accepted):
MOD = 10 ** 9 + 7
FACT_MAX = 2001
fact = [1] * FACT_MAX
for i in range(1, FACT_MAX):
    fact[i] = fact[i - 1] * i % MOD
def comb(n, r):
    return 0 if n < r else fact[n] * pow(fact[n - r], MOD - 2, MOD) * pow(fact[r], MOD - 2, MOD) % MOD

N, K = map(int, input().split())
for i in range(1, K + 1):
    print(comb(N - K + 1, i) * comb(K - 1, i - 1) % MOD)

Problem: p02990
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,blue = map(int,input().split())
red = n-blue
mod = 10 ** 9 + 7

now = [1]
for i in range(1,red+2):
    next = []
    for j in range(min(i+1,blue+1)):
        if j == 0 or j == i:
            next.append(1)
        else:
            next.append((now[j-1]+now[j])%mod)
    now = next

  
for i in range(1,blue+1):
    try:
        print((now[i] * max(1,((n-i+1)*(i-1))%mod))%mod)
    except:
        print(0)

Failing test case input:
263 4

Expected output:
260
101010
8686860
186043585


Actual output:
260
8821540
511513633
113995285


Fixed submission (verdict: Accepted):
n,blue = map(int,input().split())
red = n-blue
mod = 10 ** 9 + 7

now = [1]
get = [1]
for i in range(1,red+2):
    next = []
    for j in range(min(i+1,blue+1)):
        if j == 0 or j == i:
            next.append(1)
        else:
            next.append((now[j-1]+now[j])%mod)
    now = next
for i in range(1,blue):
    next = []
    for j in range(i+1):
        if j == 0 or j == i:
            next.append(1)
        else:
            next.append((get[j-1]+get[j])%mod)
    get = next

  
for i in range(1,blue+1):
    try:
  
        print((now[i] * get[i-1])%mod)
    except:
        print(0)