Problem Description
Loading...
Problem Analysis
Pattern-finding problem
An ordinary year has 52 weeks and 1 day
A leap year has 52 weeks and 2 days
2016 is a leap year, and its first day is Friday
So a year has 53 Fridays and Saturdays, and the rest have 52
A year has 12 months with a 29th day
A year has 11 months with a 30th day
A year has 7 months with a 31st day
cpp
| |