| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
为何总是output limit exceeded~输出好像没问题啊#include<stdlib.h>
#include<stdio.h>
int main()
{ __int64 a,b;int t,i=1;
scanf("%d",&t);
while(scanf("%I64d%I64d",&a,&b))
{
printf("Scenario #%d:\n%I64d\n\n",i,(a+b)*(b-a+1)/2);
i++;
}
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator