Oswald and the Ice-Cream Trucks
CodeChefOpen on judge ↗
Problem description Oswald and Daisy got very bored in their hostels so they decided take a walk and to play a game. While walking they can see ice-cream trucks of different colours running past them. Ice-cream trucks are going one after another. The game rules are like this. Firstly Oswald chooses some color A, then Daisy chooses some color B (A≠ B). After each ice-cream truck they update the n
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