题解 | #牛牛的金币#

牛牛的金币

https://www.nowcoder.com/practice/35d8e3e569dc49f2a1018d1dc9186998

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

全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务