Start: Apr, 17, 2017 10:00:00
Python程序设计基础培训第三次作业
End: Apr, 23, 2017 14:00:00
Time elapsed:
Time remaining:

Problem_ID: A
Result: Accepted
Time: 129ms
Memory: 23560kB
Author: 13105720657
In contest: 1087

import datetime
def week(day,date={0:6,1:9,2:6,3:5,4:5,5:5,6:5}):
    print date[day]
x=int(raw_input())
for i in range(x):
    year=int(raw_input())
    weekday=datetime.datetime(year,05,01).strftime('%w')
    week(int(weekday))