10055 - Hashmat the Brave Warrior

题目大意

题目原文:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=996

输入两个数,输出两个数的差。。。好水的题。

附上代码:

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

 

posted on 2013-02-15 16:09  T^T  阅读(170)  评论(0编辑  收藏  举报

导航