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:试试下面这组数据就知道了.

Posted by MasterLuo at 2008-11-29 14:17:19 on Problem 2249 and last updated at 2008-11-29 14:19:24
In Reply To:高手帮我看一下这里错在哪里啊,说清楚点啊,谢谢啊 Posted by:382784268 at 2008-11-29 14:06:08
2^30 2^30

会超时,会溢出.应该进行一下转换,同时处理的时候应该边乘边除.
(N+1)*(N+2)*...*(N+M)%M!=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