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 |
这题给人的感觉就是觉得会做,其实你不会。怎样安排模拟真是神处理 if( ((k>>(i-1))^1) == j>>(i-1) )//神处理 { //每队只和其在当轮相邻的队伍进行比赛 //第一轮00和01可以比赛,01和10就不可以比赛(因为分组不同,见题意) //第二轮00x和01x进行比赛 //etc... dp[i][j]+=dp[i-1][j]*dp[i-1][k]*win[j][k]; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator