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 |
状态dp。位运算优先级应该是比较低吧(注意加括号)if((stack[j] & stack[t]) !=0) continue; 写成了if(stack[j] & stack[t] !=0) continue; wa了好几次。。。 &优先级还不及!= 另外注意处理只有一行的情况就差不多ac了 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator