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: 51ms
Memory: 25580kB
Author: 13600513276
In contest: 1295

import datetime
d={"0":6,"1":9,"2":6,"3":5,"4":5,"5":5,"6":5}
q=int(input())
i=1
while i<=q:
    a=int(input())
    day=datetime.datetime(a,5,1).strftime("%w")
    print(d[day])
    i+=1