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

题目中可能有对任意k都有k^n != p的数据

Posted by fantasyorz at 2010-04-08 23:19:37 on Problem 2109 and last updated at 2010-04-09 09:07:37
我是用高精度+二分做的
天真的认为所有的数据都是存在k^n = p的
我都WA了8次。。。。。
对于这种数据,输出max{k | k^n < p}就能AC了

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