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 |
Re:好象全排列,但要不要高精啊??In Reply To:好象全排列,但要不要高精啊?? Posted by:fjnu_jxd_010 at 2005-08-21 13:58:18 应该要高精度,因为__int64没法存19位的十位数。另外,全排列可能会花很长时间。我是采用了一种类似进位制的方法,先把输入的n减1再转化成二进制,然后看哪几位为1,输出3的对应次幂。具体关系自己慢慢看吧,:) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator