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:我是用 Euler PHI 函数做的,程序相当简单,但是错了,急求高手!

Posted by guying at 2008-07-13 10:52:55 on Problem 2407
In Reply To:Re:我是用 Euler PHI 函数做的,程序相当简单,但是错了,急求高手! Posted by:guying at 2008-07-13 10:47:17
save=save*(i-1)/i; 改成: save=(save/i)*(i-1);
save*(i-1)会越界!

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