← All problemsSign in

NO NON-VEG ON SATURDAY

Chef loves non-veg, but his family won't allow him to eat non-veg on Saturdays. But, Chef is forgetful and forgets which days are Saturdays. Chef just remembers the month number $N$ and the date $D$ of the first Saturday of the month. Can you help Chef find out the other Saturdays of the month? Assume that in Chef's world there are no leap years. ### Input - First line will contain $T$, number 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.

voice by Sarvam AI

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

Sign in to start