Rainbow
CodeChefOpen on judge ↗
Yuzuvendra and his family went on a road trip, suddenly it started drizzling. While looking out from the window Yuzuvendra's brother spotted $N$ colors in the sky and was wondering if its a rainbow or not. Brother asked Yuzuvendra if that is a rainbow. Yuzuvendra was also confused. For help Yuzuvendra called you. Your task is to figure out whether its a rainbow or not. A pattern of color
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