输入一个日期的数字,计算是星期几的一个算法问题,怎么采用的C程序的语言的代码的编写的方式加以实现的?

Problem Description
Today is Saturday, 17th Nov,2007. Now, if i tell you a date, can you tell me what day it is ?

Input
There are multiply cases.
One line is one case.
There are three integers, year(0<year<10000), month(0<=month<13), day(0<=day<32).

Output
Output one line.
if the date is illegal, you should output "illegal". Or, you should output what day it is.

Sample Input
2007 11 17

Sample Output
Saturday

设置枚举变量,今天是第一个,没加一天枚举加一,攒够7个了从头数