The Calendar Problem
CodeChefOpen on judge ↗
Jinesh is very fond of playing with calendar. He asked his friend to find the week day on 1st January of a given year Y. But it's not that simple, here’s an extra task , Jinesh could change the number of days in a week to N. Since Jinesh’s friend is weak in programming help him to find the day on 1st January of a given year Y. Days are in form of A-Z. For example if a week contains 3 days then cor
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