CAPTAIN XOR
CodeChefOpen on judge ↗
CAPTAIN XOR Captain America loves fighting crime. Captain America needs an army for fighting a war against the Nazis. He is provided with information of N soldiers along with their strength. He wants to find a team with maximum potential to win, for this he needs a STONE number associated with every possible team. STONE number is calculated by applying Bitwise XOR operation on strength of each so
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