牛客的代码编辑器不能用calendar模组吗

import calendar
while True:
    try:
        a,b=[int(x) for x in input().split()]
        print(calendar.monthlen(a,b))
    except:
        break