1 条题解

  • 0
    @ 2024-7-6 20:05:59
    n,y,r = map(int,input().split())
    ts = [];zt = 0
    if n%400 == 0 or (n%100 != 0 and n%4 == 0):
        ts = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
    else:
        ts = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
    for i in range(y-1):
        zt+=ts[i]
    zt+=r
    print(zt)
    
    • 1

    信息

    ID
    537
    时间
    1000ms
    内存
    64MiB
    难度
    10
    标签
    递交数
    9
    已通过
    3
    上传者