代碼:
#include <stdio.h>
int main()
{
_int64 a,b;
while(scanf("%lld%lld",&a,&b)!=EOF)
{
if (a>b)
{
printf("%lld\n",a-b);
}
else
{
printf("%lld\n",b-a);
}
}
return 0;
}
代碼:
#include <stdio.h>
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right;