Start: Jul, 17, 2019 00:00:00
20190717Python程序设计基础培训第三次作业
End: Jul, 21, 2019 00:00:00
Time elapsed:
Time remaining:

Problem_ID: A
Result: Accepted
Time: 77ms
Memory: 26324kB
Author: 15857009836
In contest: 1295

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