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: 127ms
Memory: 23560kB
Author: yujianbo
In contest: 1087

import time,datetime
n = int(raw_input().strip())
dc = {0:9,1:6,2:5,3:5,4:5,5:5,6:6}
while n > 0:
    year = int(raw_input().strip())
    m = 5
    d = 1
    wd = int(datetime.datetime(year,m,d).weekday())
    print dc[wd]
    n -= 1