Andy and Ory
CodeChefOpen on judge ↗
Andy and Ory are brothers. They used to quarrel each other very often. In order to stop their quarrel. this bothered their sister Notalia as she could not chat with her boyfriend Xoramon. So she thought of an idea. She gave them an array of $whole numbers$ and gave each of them a task. Andy wants to find a non-empty subset of an array such that when all the elements are being $AND$ed (BINARY AND)
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