Count Fridays the 13th
CodeChefOpen on judge ↗
Some superstitious people believe that Friday the 13th13th is a day that is very unlucky. However, Sergey does not agree with them. In order to prove this to people that nothing scary will happen, he wants to choose two dates and count the number of Friday the 13th13th's between them (both inclusive). If this number is reasonably large, he will be able to tell that it is just a regular day. But
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