← Back to List

10093번: 숫자 ↗

Solutions

Python 3
152 B | 152 chars
a,b=input().split(" ")
a=int(a)
b=int(b)

if(a>b):
    a,b=b,a
if(a!=b):
    print(b-a-1)
else:
    print(0)
for i in range(a+1,b):
    print(i,end=" ")