Ninja on a Date!
CodeChefOpen on judge ↗
Naruto and Jiraiya have arrived at the new Ninja training academy. Unlike other academies , this one has some cute girls. Naruto and Jiraiya being the iconic pair they are , want to date the cutest girls they can. There are ‘N’ girls at the academy , the cuteness of the *i* th girl $1 \leq i \leq N$ is given by Ai. Each one of these ‘N’ girls is to either date Naruto , or date Jiraiya. The sigma
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