Problem: p02946
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, x = map(int, input().split())
for i in range((x-k+1), (x+k-1)):
    print(str(i)+" ", end="")

Failing test case input:
16 16

Expected output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31


Actual output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 

Fixed submission (verdict: Accepted):
k, x = map(int, input().split())
for i in range((x-k+1), (x+k)):
    print(str(i)+" ", end="")

Problem: p02946
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k, x = map(int,input().split())
start = x - k + 1

for i in range(start, k * 2 - 1):
  print(i, end="")

Failing test case input:
9 85

Expected output:
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93


Actual output:

Fixed submission (verdict: Accepted):
k, x = map(int,input().split())
start = x - k + 1

for i in range(start, start + k*2 -1):
  print(i, end=" ")

Problem: p02946
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(int,input().split())
c=list(range(b-(a-1),b+(a-1)+1))
print(c)
d=' '.join(map(str,c))
print(d)

Failing test case input:
4 59

Expected output:
56 57 58 59 60 61 62


Actual output:
[56, 57, 58, 59, 60, 61, 62]
56 57 58 59 60 61 62


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c=list(range(b-(a-1),b+(a-1)+1))
d=' '.join(map(str,c))
print(d)

Problem: p02946
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k = 10
x = 20

head = x-(k-1)
tail = x+(k-1)

ans = str(head)
for i in range(head+1,tail):
    ans = ans + " " + str(i)

print(ans)

Failing test case input:
5 27

Expected output:
23 24 25 26 27 28 29 30 31


Actual output:
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


Fixed submission (verdict: Accepted):
k, x = map(int, input().split())



head = x-(k-1)
tail = x+(k-1)

ans = str(head)
for i in range(head+1,tail+1):
    ans = ans + " " + str(i)

print(ans)

Problem: p02946
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
li = list(map(int,input().split()))
lists = []
for i in range(li[0]*2-1):
    lists.append(li[1]-li[0]+i+1)
print(lists)
moji = ""
for s in range(len(lists)):
    moji += " "+str(lists[s])
print(moji)

Failing test case input:
5 35

Expected output:
31 32 33 34 35 36 37 38 39


Actual output:
[31, 32, 33, 34, 35, 36, 37, 38, 39]
 31 32 33 34 35 36 37 38 39


Fixed submission (verdict: Accepted):
li = list(map(int,input().split()))
lists = []
for i in range(li[0]*2-1):
    lists.append(li[1]-li[0]+i+1)
moji = ""
for s in range(len(lists)):
    moji += " "+str(lists[s])
print(moji)

Problem: p02946
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
k,x=map(int,input().split())
for i in range(k):
	print(x+i-k+1,end="")
if k != 1:
	print(" ",end="")
	for s in range(k)[1:]:
		print(x+s,end="")

Failing test case input:
9 46

Expected output:
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54


Actual output:
383940414243444546 4748495051525354

Fixed submission (verdict: Accepted):
k,x=map(int,input().split())
for i in range(k):
	print(x+i-k+1,end=" ")
if k != 1:
	print("",end="")
	for s in range(k)[1:]:
		print(x+s,end=" ")