文件名称:a
介绍说明--下载内容均来自于网络,请自行研究使用
/* 在我们现在使用的日历中 , 闰年被定义为能被4整除的年份, */
/* 但是能被100整除而不能被400整除的年是例外,它们不是闰年。 */
/*输入包含若干行,每行包含一个正整数,表示从 2000年1月1日开始逝去的天数。 */
/*输入最后一行是-1, 不必处理。可以假设结果的年份不会超过9999。 */
/*对每个测试样例,输出一行,该行包含对应的日期和星期几。格式为YYYY-MM-DD */
/*"DayOfWeek”,其中 “DayOfWeek” 必须是下面中的一个: "Sunday", */
/*"Monday", "Tuesday", "Wednesday", "Thursday", "Friday" and "Saturday“。*/-/* 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" .* /
/* 但是能被100整除而不能被400整除的年是例外,它们不是闰年。 */
/*输入包含若干行,每行包含一个正整数,表示从 2000年1月1日开始逝去的天数。 */
/*输入最后一行是-1, 不必处理。可以假设结果的年份不会超过9999。 */
/*对每个测试样例,输出一行,该行包含对应的日期和星期几。格式为YYYY-MM-DD */
/*"DayOfWeek”,其中 “DayOfWeek” 必须是下面中的一个: "Sunday", */
/*"Monday", "Tuesday", "Wednesday", "Thursday", "Friday" and "Saturday“。*/-/* 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" .* /
(系统自动生成,下载前可以参看下载内容)
下载文件列表
a.cpp