Monday the 1st
CodeChefOpen on judge ↗
Problem Name : Monday the 1st. Problem description : Calculate the number of Mondays that falls on 1st (If the date is 1st and day is Monday) in the range of given years. Example 1: Input : (2015,2016) Output : 3 Explanation: 01-June-2015, 01-Feb-2016 and 01-Aug-2016 falls on Monday. Example 2: Input : (2008,2010) Output : 6 Explanation: 01-Sep-2008, 01-Dec-2008, 01-Jun-2009, 01-Feb-20
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