Cesium Capsules
CodeChefOpen on judge ↗
Being tired of daily adventures Rick and Morty decided to spend their day in their laboratory. They have two cesium capsules of radioactivity levels $A$ and $B$ units. They want to know in how many operations they can make the capsules similar. Two capsules of radioactivity levels $A$ and $B$ are similar if they satisfy the condition $A|B = A\&B$. They can perform the following operation
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