Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为何总是output limit exceeded~输出好像没问题啊

Posted by 810974380 at 2009-05-09 13:42:04 on Problem 2924
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator