Description: /* We now use the calendar, leap year is defined as a year divisible by 4,*//* but can be divisible by 100 and not divisible by 400 years is an exception, they are not leap years.*//* Input contains several lines, each line contains a positive integer, the number of days elapsed from January 1, 2000.*//* Input last line is-1, do not have to deal with. Can assume that the results of the year will not exceed 9999.*//* For each test case, output a line, the line that contains the corresponding date and day of the week. Format is YYYY-MM-DD*//* " DayOfWeek" , " DayOfWeek" must be one of the following: " Sunday" ,*//* " Monday" , " Tuesday" , " Wednesday" , " Thursday" " Friday" and " Saturday" .* /
To Search:
File list (Check if you may need any files):
a.cpp