3 条题解

  • 0
    @ 2023-6-2 11:20:07

    Python

    人生苦短,我用Py

    n = int(input())
    
    ans = 0
    
    while n > 0:
        x = n
        res = 1
        while x > 0:
            res *= x
            x -= 1
        ans += res
        n -= 1
    
    print(ans)
    

    信息

    ID
    284
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    20
    已通过
    15
    上传者