1 条题解

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

    Pascal :

    program es5;
    var a,b,c:integer;
    begin
      readln(a,b);
      if b=1 then c:=31;
      if b=3 then c:=31;
      if b=5 then c:=31;
      if b=7 then c:=31;
      if b=8 then c:=31;
      if b=10 then c:=31;
      if b=12 then c:=31;
      if b=4 then c:=30;
      if b=6 then c:=30;
      if b=9 then c:=30;
      if b=11 then c:=30;
      if b=2 then if (a mod 4=0)and(a mod 100<>0) or (a mod 400=0) then c:=29
                         else c:=28;
      writeln(c);
    end.
    
    • 1

    信息

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