Counting Blue Cars
CodeChefOpen on judge ↗
Keno has always hated commuting during the early morning rush hour. To keep himself sane during one of his trips, he started noting dow the colors of the cars he passes as his vehicle moves along. Soon enough, this wasn't enough to keep him interested, and, instead, he looked at how often blue cars showed up on the road. On one such trip, he came upon a startling discovery: the color sequences of
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