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: 13967581231
In contest: 1087

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