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: 135ms
Memory: 24040kB
Author: 18958329966
In contest: 1087

import calendar
n=int(input())
wli=[9,6,5,5,5,5,6]
li=[]
i=n
while i>0:
	y=int(input())
	w=calendar.weekday(y,5,1)
	li.append(wli[w])
	i-=1
for v in li:
	print(v)