Cubans vs Haitians
CodeChefOpen on judge ↗
Cubans and Haitians are rival gangs of Little Havana. Cubans are trying to defend their territory from Haitians. There are N Cubans and M Haitians. Each member of the gang has a certain skill level (1 to 10) which is given. Each gang has a leader. The leader of the gang is the member with highest skill level as compared to other members of the gang. The leader of each gang is given a special power
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