1 条题解

  • 0
    @ 2025-9-9 23:54:50

    Pascal :

    var
    n,y:integer;
    begin
    readln(n,y);
      case y of
      1,3,5,7,8,10,12:write('31');
      4,6,9,11:write('30');
      end;
      if y=2 then
      if (n mod 4=0) and (n mod 100<>0) or (n mod 400=0) then write('29') else write('28');
    end.
    
    
    • 1

    信息

    ID
    1865
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者