阶乘末尾的K位 解题思路:注意事项:参考代码:frommathimport*n,k=map(int,input().split())a=str(factorial(n))whilea.endswith('0'):a=a[:len(a)-1]print(a[-k:]) 题解列表 2023年04月06日 0 点赞 0 评论 621 浏览 评分:0.0