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

import calendar
n=int(raw_input())
for i in range(n):
    a=int(raw_input())
    b=calendar.weekday(a,5,1)
    if b==0:
        print 9
    elif b==1 or b==6:
        print 6
    else:
        print 5