题目不难,却要用unsigned long long 来输入输出。。考验C++基本功
#includeusing namespace std;int main(int argc, char *argv[]){ unsigned long long int a,b; while(scanf("%I64u%I64u",&a,&b)!=EOF) { if(a>b) { swap(a,b); } unsigned long long int c; c=b-a+1; printf("%I64u\n",c); } return 0;}