Functions and Festivals
CodeChefOpen on judge ↗
Today marks the beginning of the last aeon in the history of the planet of Zorg.To commemorate this special day, the Zorgians designed a special festival, which is synonymous to a function to us earthlings. The festival is to be celebrated over a range of various days, being limited by the $numero$ $maximo$, $n$. The chief Zorgian, ProgZorg, decided to host festivals only on those days which
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