首页 > 其他 > 详细

10055 - Hashmat the Brave Warrior

时间:2014-07-22 23:19:07      阅读:364      评论:0      收藏:0      [点我收藏+]
#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位整数表示。

10055 - Hashmat the Brave Warrior,布布扣,bubuko.com

10055 - Hashmat the Brave Warrior

原文:http://www.cnblogs.com/varcom/p/3861461.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!