| ||||||||||
| 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 | |||||||||
水过去了。。。1329ms。。。。 DFS的时候做了一点手脚。。。。
for(i=st;i<=ed&&i<24;i++)
{
sq[k]=i;
if(i==1) dfs(n-i,k+1,i,n-i);
else dfs(n-i,k+1,i+1,n-i);
}
自己测试数据的时候发现貌似没有哪一个置换群的势大于23。。。
实在没办法了,只能这么水过去。。。
大牛们是怎么做的啊?
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator