Hououin Kyouma and Xorsack
CodeChefOpen on judge ↗
Hououin Kyouma built a time machine and went to future to a time where P = NP is proved. But, as the world lines are separated, in the new world line, people don't add numbers the way we do. They take bitwise xor to add numbers In that world, can you solve the subset sum problem ? Given N numbers and K, find out if there exists a subset of numbers such that their bitwise xor is K. Input First
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