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

2 for

Posted by stranbird at 2010-04-11 18:05:13 on Problem 2739
    for (i = 0; i != n; i++) {
        k = 0;
        for (j = 0; (i + j) != n; j++) {
            k += b[i + j];
            if (k > 10000)
                break;
            c[k]++;
        }

n是素数个数
b存素数[2, 3, 5, 7...]
c存表示方法数,初始为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