信息学奥赛一本通T1173-阶乘和 摘要:from math import factorial as f n=int(input()) s=0 for i in range(1,n+1): s+=f(i) print(s)p…… 题解列表 2022年02月10日 0 点赞 0 评论 401 浏览 评分:7.3
python-平面切分 摘要:解题思路:注意事项:参考代码:n = int(input()) A = set() for i in range(n): k,b = map(int,input(…… 题解列表 2022年02月10日 0 点赞 1 评论 579 浏览 评分:9.9
2630: 又一个送分题 摘要:解题思路:注意事项:参考代码:n=int(input()) a=[] st=set(a) for i in range(n): a,b=map(int,input().split())…… 题解列表 2022年02月10日 0 点赞 0 评论 180 浏览 评分:0.0
1807: [编程基础]输入输出练习之格式控制 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) print('%-8d'%a,end='') print('%-…… 题解列表 2022年02月09日 0 点赞 0 评论 422 浏览 评分:8.0
python-数字三角形 摘要:解题思路:参考博客https://www.jianshu.com/p/99e379de3368动态规划。建立一个大小为(n+1)*(n+1)二维数组dp,其中dp[i][j]为从顶点走到到第i行第j列…… 题解列表 2022年02月09日 0 点赞 2 评论 528 浏览 评分:7.3
明明的随机数 摘要:n=int(input()) list1=list(map(int,input().split())) list1=list(set(list1)) list1.sort() print(le…… 题解列表 2022年02月09日 0 点赞 0 评论 294 浏览 评分:9.9
C语言训练-计算1~N之间所有奇数之和 摘要:sum=0 n=int(input()) i=1 while i<=n: sum+=i i+=2 print(sum)解题思路:注意事项:参考代码:…… 题解列表 2022年02月09日 0 点赞 0 评论 366 浏览 评分:9.3
C语言训练-计算1977!* 摘要:import math print(math.factorial(1977))直接调用math库中求阶乘的函数,python就是方便…… 题解列表 2022年02月09日 0 点赞 0 评论 316 浏览 评分:9.9
编写题解 2036: 散列存储 摘要:```python n,m=map(int,input().split()) l=[] for i in range(m): s=list(map(int,input().split(…… 题解列表 2022年02月09日 0 点赞 0 评论 230 浏览 评分:9.9
1493: 蓝桥杯算法提高VIP-任意年月日历输出(不用库的方法) 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split()) def yunn(x): s =0 for i in range(2007,x): …… 题解列表 2022年02月09日 0 点赞 0 评论 146 浏览 评分:0.0