COCI 2008/2009, Contest #4
Task DATUM
Write a program that, given a date in 2009, determines the day of week on that date.
Input
The first line contains two positive integers D and M separated by a space. The numbers will be a valid date in 2009.
Output
Output the day of the week on D. M. 2009. The output should be one of the words "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" or "Sunday".
Input1 1 OutputThursday |
Input17 1 OutputSaturday |
Input25 9 OutputFriday |
All Submissions
Best Solutions
Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Jan 19, 2009
Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3
Comments (Search)
Where should i put my c:=c+7?