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:下面是我的代码,怎么老是runtime error,那位仁兄帮帮忙啊 ,请教高手啊,

Posted by glasswm at 2008-07-17 00:10:16 on Problem 3641
In Reply To:下面是我的代码,怎么老是runtime error,那位仁兄帮帮忙啊 ,请教高手啊, Posted by:ZhangJunhua at 2008-07-16 21:36:43
题目中有 Given 2 < p ≤ 1000000000 and 1 < a < p

也许int型不够用吧!

还有个肯定会出错的地方 int*b=new int[p+1];

如果p=1000000000,  肯定分配不了这么打的数组!



LZ 能否把思路贴出来分享下?

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