1126: C语言训练-字符串正反连接 ```cpp#include#includeusingnamespacestd;intmain(){charch1[50],ch2[50];gets(ch1);for(inti=strlen(ch1)-1;i>=0;i--)ch2[i]=ch1[strlen(ch1)-1-i];strcat(ch1, 题解列表 2022年09月22日 0 点赞 0 评论 996 浏览 评分:9.9
1674: 数据结构-有序线性表的有序合并 #include//万能头usingnamespacestd;inlineintread(){//快读intx=0,f=1;charch=getchar();while(ch'9'){if(ch=='-')f=-1;ch=getchar();}while(ch>='0'&&ch 题解列表 2022年09月18日 0 点赞 0 评论 924 浏览 评分:9.9
1673: 数据结构-集合union #include//万能头usingnamespacestd;inlineintread(){//普普通通的快读intx=0,f=1;charch=getchar();while(ch'9'){if(ch=='-')f=-1;ch=getchar();}while(ch>='0'&&ch 题解列表 2022年09月18日 0 点赞 0 评论 1232 浏览 评分:9.9
朴素版本的dijkstra算法(有注释) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstring> using namespace std; c…… 题解列表 2022年09月18日 0 点赞 0 评论 711 浏览 评分:9.9
floyd算法套用模板 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<algorithm> using namespace std; con…… 题解列表 2022年09月18日 0 点赞 0 评论 657 浏览 评分:7.0
字符串对比 摘要:参考代码1#include<iostream> #include<math.h> #include<string.h> #include<stdlib.h> using namespace s…… 题解列表 2022年09月18日 0 点赞 0 评论 621 浏览 评分:9.9
蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:这个题主要是找规律这里我们说一下他的规律,我们会发现a2 其实就是 a1 + c + a1 就是把上一个的字符串首尾拼接,中间再拼接一个字母,字母会逐步向加,从a 加到 z好了,再有不懂得…… 题解列表 2022年09月17日 0 点赞 0 评论 581 浏览 评分:9.9
[编程入门]阶乘求和 两种方法 任选其一 解题思路:这道题其实不难,两种思路,两种复杂度,思路一、分别求1到n得阶乘,求完之后,再相加,但是这样得话,复杂度就会是O(n^2)思路二、这里用到一个公式,就是n的阶乘等于n-1的阶乘乘以n,所以,我们就可以递推进行相加。注意事项:数据会很大所以要开longlong参考代码:#include 题解列表 2022年09月17日 0 点赞 1 评论 604 浏览 评分:9.6 [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <bits/stdc++.h> using namespace std;int main(){ char s[10…… 题解列表 2022年09月17日 0 点赞 0 评论 456 浏览 评分:0.0 1032: [编程入门]自定义函数之字符串连接 (三行代码解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string a,b; cin>>a>>b; cout<<a<<b;}…… 题解列表 2022年09月17日 0 点赞 0 评论 458 浏览 评分:0.0 « 12...674675676677678679680...16501651 »
[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <bits/stdc++.h> using namespace std;int main(){ char s[10…… 题解列表 2022年09月17日 0 点赞 0 评论 456 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接 (三行代码解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string a,b; cin>>a>>b; cout<<a<<b;}…… 题解列表 2022年09月17日 0 点赞 0 评论 458 浏览 评分:0.0