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

import datetime
n=int(raw_input())
j=[9,6,5,5,5,5,6]
for i in range(n):
    x=int(input())
    y=datetime.date(x,5,1).weekday()
    print j[y]