Start: Jul, 17, 2019 00:00:00
20190717Python程序设计基础培训第三次作业
End: Jul, 21, 2019 00:00:00
Time elapsed:
Time remaining:

Problem_ID: A
Result: Accepted
Time: 81ms
Memory: 26312kB
Author: 15024334404
In contest: 1295

import calendar
for i in range(int(input())):
    yrs = int(input())
    wkd = calendar.weekday(yrs,5,1)
    if wkd == 0:
        print(9)
    elif wkd == 1 or wkd == 6:
        print(6)
    else:
        print(5)