OR & XOR
CodeChefOpen on judge ↗
Monocarp had two arrays of $32$-bit numbers$,$ $A$ and $B$ both of size $N$ ${i. e}$ $A$ $=$ $[a_1, a_2, a_3, ..., a_N]$ $ $ $\&$ $ $ $B$ $=$ $[b_1, b_2, b_3 ..., b_N]$.$ $ Because Monocarp likes Bit Manipulation, he immediately calculated $OR$ array $\&$ $AND$ array. ${i. e}$ $OR$ $ $ ${Array}$ $:$ $[a_1$ $|$ $b_1,$ $a_2$ $|$ $b_2, ...,$ $a_N$ $|$ $b_N]$ $AND$ $ $ ${Array}$ $:$ $[a_1$ $\&$
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start