大小写转换python标准题解 摘要:解题思路:注意事项:参考代码:def transform(astring): result='' for char in astring: if …… 题解列表 2024年02月24日 0 点赞 0 评论 443 浏览 评分:9.9
2841: 大整数加法python解法 摘要:解题思路:py可以直接处理大数注意事项:参考代码:a=int(input())b=int(input())print(a+b)…… 题解列表 2024年02月24日 0 点赞 0 评论 870 浏览 评分:9.9
2881: 图像相似度python解法 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split()) A=[list(map(int,input().split()))for i in range(a)] B=…… 题解列表 2024年02月24日 0 点赞 0 评论 336 浏览 评分:9.9
用递归方法求阶乘 摘要:解题思路:写factorial( )函数利用递归求阶乘易知,x!=x*(x-1)!=x*(x-1)*(x-2)!=...=x*(x-1)*(x-2)*...*1因此,可以利用递归求得x!,即在fact…… 题解列表 2024年02月24日 0 点赞 0 评论 548 浏览 评分:9.9
Jayden-[解释通俗易懂,一看就会! ] 水仙花数判断 摘要:解题思路:一个简单的for循环遍历每一个数字,根据公式判断是否满足水仙花数的条件。注意事项:注意遍历每一个数的个位、十位和百位的取值方法,有多种,不止以下代码中的一种哦。参考代码:#include<s…… 题解列表 2024年02月25日 0 点赞 1 评论 357 浏览 评分:9.9
Jayden-[解释通俗易懂,一看就会! ] 有规律的数列求和 摘要:解题思路:题目:有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... 求出这个数列的前N项之和,保留两位小数。我们可以发现第n项的分母等于第(n - 1)项的分子,第n项的…… 题解列表 2024年02月25日 0 点赞 1 评论 479 浏览 评分:9.9
翻转(模拟法) 摘要:解题思路:注意事项:参考代码:n = int(input()) for i in range(n): ans=0 T=list(input()) S=list(inpu…… 题解列表 2024年02月25日 1 点赞 0 评论 658 浏览 评分:9.9
题解 1085: A+B for Input-Output Practice (I) 摘要:`while(cin>>)`即可。 ````cpp #include using namespace std; int main(){ long long a,b; while(cin…… 题解列表 2024年02月25日 0 点赞 0 评论 572 浏览 评分:9.9
题解 1086: A+B for Input-Output Practice (II) 摘要:`for`枚举1到n即可 ```cpp #include using namespace std; int main(){ long long a,b; int n; cin>>n…… 题解列表 2024年02月25日 1 点赞 0 评论 607 浏览 评分:9.9
题解 1088: A+B for Input-Output Practice (IV) 摘要:`while(cin>>n)`加上`for(int i=1;i>n&&n!=0){ int sum=0,x; for(int i=1;i>x; sum+=x; } co…… 题解列表 2024年02月25日 0 点赞 0 评论 475 浏览 评分:9.9