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:请问hawk,这道题的算法是不是这样的:找出M的除掉1的因子的个数p,然后用M^N减去p^N得到结果?

Posted by whut001 at 2008-01-09 12:22:28 on Problem 1091
In Reply To:请问hawk,这道题的算法是不是这样的:找出M的除掉1的因子的个数p,然后用M^N减去p^N得到结果? Posted by:zxqi_009 at 2005-08-25 10:00:50
还要用到容斥原理

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