uva 10055

 1 #include <cstdio>
 2 using namespace std;
 3 
 4 int main()
 5 {
 6     long long a, b;
 7     while(scanf("%lld%lld", &a, &b) != EOF)
 8     {
 9         if(a > b)
10             printf("%lld
", a - b);
11         else printf ("%lld
", b - a);
12     }
13     return 0;
14 }
原文地址:https://www.cnblogs.com/aze-003/p/5140868.html