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: 128ms
Memory: 23560kB
Author: 15606823587
In contest: 1087

import datetime
def printdays(day,days_dict = {0:6,1:9,2:6,3:5,4:5,5:5,6:5}):
	print days_dict[day]
n=int(raw_input())
for i in range(n):
	year=int(raw_input())
	anyday=datetime.datetime(year,05,01).strftime("%w")
	printdays(int(anyday))