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

水过去了。。。1329ms。。。。

Posted by punkcpp at 2008-10-28 23:17:05 on Problem 3590
 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:
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