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

import calendar
tase=int(raw_input())
for i in range(tase) :
	year=int(raw_input())
	a=calendar.weekday(year,5,1)
	if a==0:
		print 9
	elif a==1 or a==6:
		print 6
	else:
		print 5