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\n", a - b); 11 else printf ("%lld\n", b - a); 12 } 13 return 0; 14 }
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\n", a - b); 11 else printf ("%lld\n", b - a); 12 } 13 return 0; 14 }
转载于:https://www.cnblogs.com/aze-003/p/5140868.html