洛谷-T24950 今天星期几

# -*- coding: utf-8 -*-
"""
Created on Wed Apr  4 20:06:09 2018


@author: wdf
"""


L=input()
L=L.split(" ")
y=int(L[0])
m=int(L[1])
d=int(L[2])
if m==1 or m==2:
    y-=1
    m+=12
W= (d+2*m+3*(m+1)//5+y+y//4-y//100+y//400+1)%7 
L=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday" ]
print(L[W])
阅读更多
个人分类: 洛谷-python
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭