您的位置:首页 > 其它

10055 - Hashmat the Brave Warrior

2014-07-22 21:38 316 查看
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
using namespace std;
//typedef __int64 lld;
typedef long long lld;
int main()
{
lld n,m,ans;
//while(scanf("%I64d%I64d",&n,&m)!=EOF)
while(scanf("%lld%lld",&n,&m)!=EOF)
{
if(m>n)
ans=m-n;
else
ans=n-m;
//printf("%I64d\n",ans);
printf("%lld\n",ans);
}
return 0;
}


题意是32位整数,所以要使用64位整数表示。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: