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

用bool可以

Posted by HeadHunter at 2013-04-05 12:14:46 on Problem 2262
In Reply To:这里用素数筛法,不会内存空间不够么,求高手正解 Posted by:shiyimin at 2013-03-15 15:36:51
const int MAX = 1000000;
bool a[MAX];

然后开始筛……

或者int *a = new int[MAX];也可以搞定

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