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

import datetime
n=int(input())
for i in range(n):
	y=int(input())
	m=5
	d=1
	w=datetime.date(y,m,d).weekday()
	if w==0:
		print 9
	elif w==1 or w==6:
		print 6
	else:
		print 5