Count of submasks of array[i] present in array

Revision en2, by plag-reporter, 2023-01-11 06:13:43

How do I find count of j's such that array[i] | array[j] = array[i] ? Here, '|' is bitwise OR operator.I was thinking of this while solving today's(round 843) problem B. |array| <= 1e5 , max(array) <= 1e18

Tags bitmasks, bitwise operators, codeforces round 843

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English plag-reporter 2023-01-11 06:13:43 9
en1 English plag-reporter 2023-01-10 19:58:30 253 Initial revision (published)