1968: 蓝桥杯算法提高VIP-阶乘差 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) def jc(x): s=1 for i in range(1,x+1): …… 题解列表 2022年02月21日 0 点赞 0 评论 607 浏览 评分:0.0
高精度加法(python) 解题思路:python中没有long等数据类型,其本身已具有傅里叶乘法等优化算法的功能,int类型具有无限精度,所以可以直接求解。注意事项:注意格式参考代码:a=int(input())b=int(input())print(a+b) 题解列表 2022年02月21日 0 点赞 0 评论 842 浏览 评分:8.4
亲和数题解 摘要:解题思路:注意事项:参考代码:def qhs(n): s=0 for i in range(1,n): if n%i==0: s+=i retur…… 题解列表 2022年02月21日 0 点赞 0 评论 576 浏览 评分:0.0
编写题解 1208: 孤独的骑士 摘要:解题思路:注意事项:参考代码:dic={'a':1,'b':2,'c':3,'d':4,'e':5,'f'…… 题解列表 2022年02月21日 1 点赞 0 评论 666 浏览 评分:10.0
1040: [编程入门]实数的打印 摘要:解题思路:注意事项:第二个双引号前放一个空格,否则格式错误参考代码:s = eval(input())for i in range(1, 4): print("{:6.2f } ".format…… 题解列表 2022年02月21日 0 点赞 0 评论 578 浏览 评分:0.0
1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:def fun(s): a=b=c=d=0 for i in s: if i.isalpha(): a += 1 …… 题解列表 2022年02月21日 0 点赞 0 评论 521 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def fun(a): b = "" for i in a: b += i b += ' ' print(b…… 题解列表 2022年02月21日 0 点赞 0 评论 522 浏览 评分:0.0
1033: [编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:def fun(a): b = '' c = 'aeiou' for i in a: if i in c:…… 题解列表 2022年02月21日 0 点赞 0 评论 554 浏览 评分:0.0
python-产生数 解题思路:参考思路:https://blog.dotcpp.com/a/73121①建立一个大小为10*10的二维数组dp,初始化为0。dp[i][j]=0代表由i不能变化到j,dp[i][j]=1表示由i能变换到j。建立一个大小为10的数组T, 题解列表 2022年02月21日 0 点赞 0 评论 794 浏览 评分:9.9
还行,一般般吧 摘要:解题思路:注意事项:参考代码:a=str(input())b=[]for i in a: i=ord(i) if i in range(97,122): b.append(c…… 题解列表 2022年02月21日 0 点赞 0 评论 685 浏览 评分:6.0