Skip to content

Commit

Permalink
Add kattis prob datum in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
iandioch committed Sep 4, 2017
1 parent 95901d9 commit 5abfedc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions kattis/datum/solution.py
@@ -0,0 +1,14 @@
from datetime import date

days = [
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday',
]
day, month = [int(s) for s in input().split()]
date = date(2009, month, day)
print(days[date.weekday()])

0 comments on commit 5abfedc

Please sign in to comment.