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

好水的题啊

Posted by TSERROF at 2012-08-26 10:14:05 on Problem 2924
#include<cstdio>
int main()
{
	int T;
	scanf("%d",&T);
	for(int i=1;i<=T;++i)
	{
		if(i!=1)printf("\n");
		long long a,b;
		scanf("%lld%lld",&a,&b);
		long long plus=b+a;
		long long num=b-a+1;
		printf("Scenario #%d:\n%lld\n",i,plus*num/2);
	}
	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