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

为什么这么水的题我的代码却总是time error! help!

Posted by ace_killer at 2009-03-27 00:44:06 on Problem 2924
#include<stdio.h>
void main()
{
	long int N,i,j;
	__int64 m,n;
	 __int64 sum[100];
	scanf("%d",&N);
	for(i=0;i<N;i++)
	{
		scanf("%I64d %I64d",&m,&n);
			if(m<n)
			sum[i]=(n-m+1)*(n+m)/2;
	}
	for(j=0;j<N;j++)
		printf("Scenario %c%d:\n%I64d\n\n",'#',j+1,sum[j]);
	 
}

用C提交的

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