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;
}
#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;
}
相关文章推荐
- ACdream 1061 郭式树
- ACdream 1061:郭式树
- Acdream 1061 郭式树
- ACdream 1061(abs用法)
- ACdream 1061 郭式树
- ACdream 1061(abs用法)
- ACdream 1061(abs用法)
- 【ACdream 1061- 郭式树】+ 大数运算
- ACdream 1061 郭式树
- ZOJ-1061-Web Navigation
- [1061]青蛙的约会
- HDOJ 1061: Rightmost Digit
- poj 1061 青蛙的约会 数论 线性同余
- POJ1061
- 1061 Rightmost Digit
- SQLServer 2005 安装完之后,无法连接,连接被拒绝 错误代码:1061
- POJ 1061 青蛙的约会
- POJ 1061 青蛙的约会(扩展欧几里德)
- HDOJ 1060 / HDOJ 1061/ HDOJ 1568 总结(如何求大数最左边最右边的数)
- poj 1061