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

#!/usr/bin/python
import calendar
a=int(input())
for i in range(a):
   year=input()
   d=calendar.weekday(year,5,1)
   if d==0:
	   print 9
   elif d==1 or d==6:
	   print 6
   else:
	   print 5