Please help me with this Bits Question!!!

Правка en1, от Spectacular_Lemma, 2023-08-05 12:25:37

Given an array A of size n and a target integer X, we need to find an array B such that ΣA[i]&B[i]=X (1<=i<=n).

If multiple answers are possible find the lexicographically smallest array B.

As constraints are unknown, I hope someone can help me to find suitable constraints too.

Теги bitmask, dp, array, ask, help me

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Spectacular_Lemma 2023-08-05 12:25:37 327 Initial revision (published)