您的位置:首页 > 其它

ACdream 1061:郭氏树

2016-08-21 18:29 204 查看
把A当作原点就可以了

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
typedef long long LL;
int main()
{
LL x,y;
int t;
scanf("%d",&t);
unsigned long long z;
while(t--)
{
scanf("%lld%lld",&x,&y);
if(y>x) z=y-x;
else z=x-y;
printf("%llu\n",z);
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: