摘要:
http://poj.org/problem?id=3678题意:给出n个数和m组数对应的位运算,判断n个数是否满足m组位运算构图:把每个点拆成两个,一个代表0,一个代表1,总共有2*n个点,0~2*n-1a AND b=0 2*a+1->2*b , 2*b+1->2*aa AND b=1 2*a->2*a+1 , 2*b->2*b+1 (AND 1 时 要求a和b同时为1,不能为0的处理时:如果i取0,那么i就要取1.)其它的类似代码:#include<iostream>#include<cstdio>#include<cstring&g 阅读全文
posted @ 2012-02-20 00:44
快乐.
阅读(175)
评论(0)
推荐(0)

浙公网安备 33010602011771号