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

Re:有个想法,不知道是否可行

Posted by timeloop at 2008-07-28 23:03:32 on Problem 3678
In Reply To:有个想法,不知道是否可行 Posted by:timeloop at 2008-07-28 09:33:40
> 首先.处理与的1和或的0,就是可以确定值的,一旦有矛盾,结束,输出NO,然后用并查集处理异或运算,有矛盾一样输出NO,最后,处理于的0和或的1,与的0校检两个是是否不同时为1,或的1校检两个数是否不同时为0,当然,两个数要是处于一个集合,那么与的0可能性只有一种,那就是都为0,或的1则是都为1,可确定值,校检完全无矛盾则输出YES,没时间验证,但觉得好像可行.
今晚试了下,写到验证异或为1的情况放弃了,太复杂了,没时间.-______________-

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