uva - 10055 - Hashmat the Brave Warrior 解题报告

原题链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996

原题大意:抛开那些历史人物问题其实就是输入两个数求他们差的绝对值= =超级大水题!

1 #include<stdio.h>
2 #include<math.h>
3 int main(){
4     long int a,b,s;
5     while(scanf("%ld%ld",&a,&b)!=EOF){
6     s=fabs(a-b);
7     printf("%ld\n",s);}
8 }

 

posted @ 2013-02-12 09:50  sev_en  阅读(111)  评论(0编辑  收藏  举报