Start: Nov, 12, 2017 10:00:00
2017秋Python程序设计基础培训第三次作业
End: Nov, 19, 2017 12:00:00
Time elapsed:
Time remaining:

Problem_ID: A
Result: Accepted
Time: 82ms
Memory: 24700kB
Author: cxf2017
In contest: 1123

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