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

three for to solve this problem

Posted by dart at 2008-01-03 16:44:17 on Problem 2739
   for(i=2;i<=prime.size();i++)
		for(j=0;j<prime.size();j++)
		{
			int sum=0;
			for(k=j;k<j+i && k<prime.size();k++)
			{
			    sum+=prime[k];	
			}
			if(sum<10001) result[sum]++;
		}

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