Strange Game
CodeChefOpen on judge ↗
Daksh and his friend Aayushi are playing a strange game. In this game both the players are provided N cards each having some integer written on it. Di denotes the number written on the i th card of Daksh (i= 1,2,…N). Ai denotes the number written on the i th card of Aayushi(i=1,2,…N). The game is as follows: Daksh chooses 2 cards from his N cards. Aayushi chooses 2 cards from her N cards. Bo
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