2 条题解

  • 0
    @ 2025-10-13 11:51:22

    Python:

    a,b = map(int,input().strip().split())
    perimeter = (a+b)*2
    area = a*b
    print(f"{perimeter:.2f} {area:.2f}")
    

    信息

    ID
    29
    时间
    1000ms
    内存
    256MiB
    难度
    9
    标签
    递交数
    7
    已通过
    5
    上传者