1046: [编程入门]自定义函数之数字后移(python) 摘要:把末尾的插入`a[0]`,再把末尾的删除 ~~~python n = int(input()) a = list(map(int,input().split())) m = int(inp…… 题解列表 2024年10月24日 1 点赞 0 评论 298 浏览 评分:9.9
1137: C语言训练-求函数值(python) 摘要:Python的默认最大递归深度(通常为1000)。当输入的x值较大时,函数f(x)会进行大量的递归调用,导致递归深度超过限制。 **解决方法** - 增加递归深度限制:可以通过sys.setr…… 题解列表 2024年10月24日 0 点赞 0 评论 191 浏览 评分:9.9
for循环,数组的运用。 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; int Sn=0; int a[100]…… 题解列表 2024年10月24日 0 点赞 0 评论 250 浏览 评分:9.9
模拟 #2911: 连续出现的字符 摘要:``` #include #include #include #include using namespace std; int main() { char str[1010]…… 题解列表 2024年10月25日 0 点赞 0 评论 147 浏览 评分:9.9
题解有点复杂(实际就是我太菜了),还是看看我这个小佝偻的吧 摘要: #include #include using namespace std; typedef pair PII; const int N=101; …… 题解列表 2024年10月25日 0 点赞 4 评论 397 浏览 评分:9.9
Python "结构体"的多参数排序 摘要: from functools import cmp_to_key def cmp(a,b): if a[3] 5: for j in range(…… 题解列表 2024年10月25日 0 点赞 0 评论 192 浏览 评分:9.9
合并石子 区间dp模板 摘要: #include using namespace std; const int N=110; int f[N][N]={0}; int s[N]={0…… 题解列表 2024年10月25日 1 点赞 0 评论 246 浏览 评分:9.9
2773计算线段长度 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double xa, ya, xb, yb; scanf("%lf %lf\n%…… 题解列表 2024年10月26日 0 点赞 0 评论 236 浏览 评分:9.9
数字的处理与判断python解 摘要:sd = input() print(len(sd)) print(' '.join(sd), end='') print("\n"+sd[::-1])注意事项:…… 题解列表 2024年10月26日 1 点赞 0 评论 315 浏览 评分:9.9
数字的处理与判断c语言题解 摘要:解题思路:这题可以分成三个用户自定义函数来实现3个功能注意事项:这是个人想法,没有看题解参考代码:#include <stdio.h> int Num(int sum); void separat…… 题解列表 2024年10月26日 1 点赞 0 评论 237 浏览 评分:9.9