Editorial for COCI '08 Contest 4 #2 Datum


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

The first example reveals that January 1, 2009 was a Thursday. Knowing how many days there are in every month, we can calculate for a given date which day it is in the year, and from that which day it is of the week.


Comments

There are no comments at the moment.