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

import datetime
n=int(raw_input().strip())
for i in range(n):
	s=0
	data=int(raw_input().strip())
	day=int(datetime.datetime(data,5,1).strftime("%w"))
	if day==1:
		s=9
	elif day==2 or day==0:
		s=6
	else:
		s=5
	print s