BC67 牛牛的金币

思路:

step1:输入两点坐标;判断并输出结果;

代码如下:

x,y = list(map(int,input().split()))
x1,y1 = list(map(int,input().split()))
if (x-x1) == 1:
    print('l')
elif (x-x1) == -1:
    print('r')
elif (y-y1) == 1:
    print('d')
elif (y-y1) == -1:
    print('u')