A XOR B, A AND B, A OR B --> B

Revision ru1, by xsc, 2016-12-07 22:33:05

Known value of A ( 0 <= A < 2^32), and

D1 = A XOR (B1 XOR ... XOR Bn);  
D2 = A AND (B1 AND B2 AND ... AND Bn);  
D3 = A OR  (B1 OR B2 OR ... OR Bn)

values. (0<= D1,D2,D3 < 2^32) but, B1, B2,..,Bn — are unknown values in [0 .. 2^32-1].

Can I find X = B1 AND B2 AND .. AND Bn ??

Thanks.

Tags bitwise operators, arrays, tricks

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru1 Russian xsc 2016-12-07 22:33:05 355 Первая редакция (опубликовано)