ANOTHER CARD GAME
CodeChefOpen on judge ↗
Aditya bought a new card game recently, there are $N$ cards and each i-th card has two numbers $Ai$ and $Bi$ written on it. $Ai$ is called the ZETA value of the card and Bi is the point associated with the card. There may be multiple cards with the same ZETA value but different points associated with them. (Example: Card 1 : {ZETA VALUE : 3, POINTS : 1}, Card 2 : {ZETA VALUE : 3, POINTS : 10}) Adi
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