← All problemsSign in

Count the Holidays

CodeChefRating 907Open on judge ↗

A particular month has $30$ days, numbered from $1$ to $30$. Day $1$ is a Monday, and the usual $7$-day week is followed (so day $2$ is Tuesday, day $3$ is Wednesday, and so on). Every Saturday and Sunday is a holiday. There are $N$ festival days, which are also holidays. Note that it is possible for a festival day to occur on a Saturday or Sunday. You are given the dates of the festivals. Dete

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start