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

import calendar
nw = [9,6,5,5,5,5,6]
for i in range(int(raw_input())):
   print nw[calendar.weekday(int(raw_input()),5,1)]