Help in a Question

Revision en1, by SuryanshIITP, 2023-08-17 17:25:47

Problem Description Given an array A of N integers. Two numbers B and C are said to form a special pair if 2 x (B|C) + (B^C) — (B & C) >= B+ C. Count the number of pairs (i, j) and such that A[i] and A[j] form a special pair. Note: The pair (i, j) is considered the same as (j, i) so count it only once. problem Constraints are standard N<=1e5 and A[i]<=2^30

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English SuryanshIITP 2023-08-17 17:25:47 382 Initial revision (published)