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: 142ms
Memory: 25404kB
Author: zzzhangxd
In contest: 1123

import calendar
nw = [9,6,5,5,5,5,6]
n=int(input())
a=[]
while n>0:
    a.append(int(input()))
    n-=1
for i in a:
    print(nw[calendar.weekday((i),5,1)])