#include<stdio.h> #include<stdlib.h> int main() { long long a,b; while(scanf("%lld%lld",&a,&b)!=EOF) printf("%lld ",abs(b-a)); return 0; }
abs()函数求绝对值
#include<stdio.h> #include<stdlib.h> int main() { long long a,b; while(scanf("%lld%lld",&a,&b)!=EOF) printf("%lld ",abs(b-a)); return 0; }
abs()函数求绝对值