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

状态dp。位运算优先级应该是比较低吧(注意加括号)

Posted by taylor_tao at 2008-08-08 22:25:02 on Problem 1185
if((stack[j] & stack[t]) !=0)  continue;
写成了if(stack[j] & stack[t] !=0)  continue;
wa了好几次。。。
&优先级还不及!=

另外注意处理只有一行的情况就差不多ac了

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