Card Game
CodeChefOpen on judge ↗
Chef is playing card game with his friend. his friend is very good in playing this game while Chef is a newbie. Rules of the game are as follow: - There are $N$ cards numbered $1$ to $N$, each card has some value written on it. - Chef can choose all cards out of $N$ cards or any number of cards between $0$ to $N$. - If Chef chooses less than $N$ cards, he will have to choose cards in conse
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