1052: [编程入门]链表合并(python) 摘要:### 代码如下: ~~~python n,m = map(int,input().split()) d = {} for i in range(m+n): k,v = map(…… 题解列表 2024年10月15日 3 点赞 0 评论 521 浏览 评分:10.0
1035: [编程入门]自定义函数之字符类型统计(python) 摘要:### 代码如下 ~~~python a = [0] * 4 for i in input(): if i.isalpha(): a[0] += 1 e…… 题解列表 2024年10月15日 1 点赞 0 评论 527 浏览 评分:8.7
2002: 计算数字个数(python) 摘要:### 无需多言,代码如下: ~~~python print(len([i for i in input() if i.isdigit()])) ~~~  { string…… 题解列表 2024年10月15日 3 点赞 0 评论 807 浏览 评分:9.0
日期排序(c++代码使用stl库) 摘要:解题思路:用sstream类分割字符串,再用vector容器存储起来,依次比较。注意事项:参考代码:#include<iostream> #include<string> #include<vec…… 题解列表 2024年10月15日 0 点赞 0 评论 492 浏览 评分:0.0
递归倒置字符组xxxxx 摘要:解题思路:定义递归函数,以首尾字符交换的方式逐步调整字符串,通过不断缩小处理范围实现倒置。在递归过程中,每次交换字符后打印当前字符状态,当范围缩小到只剩一个字符或更少时停止递归。注意事项:1.注意递归…… 题解列表 2024年10月16日 0 点赞 0 评论 591 浏览 评分:9.9
二分法求函数的零点xxxx 摘要:解题思路:利用二分法不断缩小含根区间,根据函数值确定新的区间范围,直到满足精度要求,最后四舍五入得到结果。注意事项:选择合适的循环终止条件,确保计算准确性。参考代码:#include #include…… 题解列表 2024年10月16日 1 点赞 0 评论 657 浏览 评分:9.9
和和为为给给定定数数 摘要:解题思路:读取输入后排序,用双指针从两端向中间找和为目标值的数对,根据当前和调整指针参考代码:#include <iostream> #include <vector> #include <alg…… 题解列表 2024年10月16日 0 点赞 0 评论 489 浏览 评分:9.9
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码#include<iostream>#include<string>using namespace std;int main(){ string s; cin>…… 题解列表 2024年10月16日 1 点赞 0 评论 444 浏览 评分:0.0
题解 2515: 转圈游戏 摘要:解题思路:注意事项:参考代码:#include <stdio.h>typedef long long LL;LL quick(LL a,LL b,LL m){ if(b==0) r…… 题解列表 2024年10月16日 0 点赞 0 评论 357 浏览 评分:0.0