题解 | #牛牛的金币#
牛牛的金币
http://www.nowcoder.com/practice/35d8e3e569dc49f2a1018d1dc9186998
#include <stdio.h> int main(){ int x,y; int x1,y1; scanf("%d%d",&x,&y); scanf("%d%d",&x1,&y1); if(x1>x)printf("r"); else if(x1<x)printf("l"); else if(y1>y)printf("u"); else if(y1<y)printf("d"); return 0; }