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

一般解法

Posted by sheeper at 2013-02-10 19:33:38 on Problem 1289
设有K种高度不同的猫(K层)
输入的第一个数是最高那只猫的高度H,第二个数是要工作的猫(高度为1)的个数P
有方程组
(N+1)^(K-1)=H;
N^(K-1)=P;
解出N,K题目就迎刃而解了
另外谢谢一位同学的提醒,注意边缘数据 1 1

另外题目中给了大数据样例
5764801 1679616
已经发现,所有的数据的最大质因数不大于100;

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