Task DescriptionDiscussion (0)
Input:
Output:
Input:
Output:
Input:
Output:
Task :: Datumi
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.
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".
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".
Input:
1 1
Output:
Thursday
Input:
17 1
Output:
Saturday
Input:
25 9
Output:
Friday
Submit Solution
Available Languages
Task info
Task Ratings
| Difficulty: | 2.8 (36 votes) |
| Quality: | 3.7 (28 votes) |
Acceptance Rate
Recent Submissions
Fastest Solutions
| User | Time |
|---|---|
| Al3kSaNdaR | 0 s. |
| gates | 0 s. |
| tgudlek | 0 s. |
| turgond | 0 s. |
| princo | 0 s. |
| msantl | 0 s. |
| nemanja1990 | 0 s. |
| thewolf | 0 s. |
| drugsale | 0 s. |
| chumez | 0 s. |
Solved By
Home
Training
Competitions
Forum
FAQ