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

Re:大牛们看看我的程序吧,为什么总wa

Posted by zwldl at 2009-02-18 15:40:29 on Problem 2262
In Reply To:大牛们看看我的程序吧,为什么总wa Posted by:08161072 at 2008-11-26 17:53:02
while 语句中第一个for循环中,应该改为for(i=2;i<=x/2;i++)
你的程序判断6时会显示Goldbach's conjecture is wrong
强人啊!
另外,int a[N+1]
最好改为bool a[N+1]
否则会runtime error

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