| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
逛论坛的朋友帮忙指点一下:给定一个数,求一个最小的base,使得该数的成为回文数给定一个数,求一个最小的base,使得该数的成为回文数 sample in: 2 3 25 30 out: 3 2 4 9 说明 2的3进制表示是2 3的2进制表示是11 25的24进制表示是121 30的9进制表示是33 关于这个问题,大家有什么好的解法?如果枚举,是否有什么好的剪枝? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator