Fools Club
CodeChefOpen on judge ↗
You joined a FOOLS - FOOTBALL CLUB as a coach. There are N players in the club, each one of the player either belongs to TEAM A or TEAM B. None of the players are equal in strength pairwise. Since you are new to the club you dont know the players strengths. So you start asking every player a question " HOW MANY PLAYERS IN YOUR TEAM(TEAM A or TEAM B) ARE BETTER THAN YOU?". Now each player either
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