0916每日一题【C++】 摘要:解题思路:找到对称轴,实现字符串之间的相加注意事项:C++,而且注意如果s不定义为"A”的话,i要从0开始,且循环体要交换顺序参考代码:#include <iostream>//李政 #includ…… 题解列表 2022年09月17日 0 点赞 2 评论 239 浏览 评分:9.9
1122: C语言训练-亲密数 摘要:```cpp #include #include using namespace std; mapm; void judge(int a) { int result=0; …… 题解列表 2022年09月17日 0 点赞 1 评论 810 浏览 评分:9.9
1123: C语言训练-列出最简真分数序列* 摘要:```cpp #include using namespace std; bool Judge(int &a,int &b) { for(int i=2;i…… 题解列表 2022年09月17日 0 点赞 0 评论 386 浏览 评分:9.9
1124: C语言训练-大、小写问题 摘要:```cpp #include #include using namespace std; int main() { char ch[101]; gets(ch); …… 题解列表 2022年09月17日 0 点赞 0 评论 404 浏览 评分:9.9
中华人民共和国万岁1 摘要:解题思路:无注意事项:无参考代码:#includeint main(){ int i,j,n,sum=0; scanf("%d",&n); for(i=0,j=2;i<n;i++,j+=3) { s…… 题解列表 2022年09月17日 0 点赞 3 评论 660 浏览 评分:9.9
合并链表之【直接在head1的后面接上head2】 摘要:主要思路如下: 1、创建:分别创建好两个已知长度的链表并输入相关的值(从head->next开始存值) 2、合并:直接将第二个链表接到第一个链表的尾部,将第一个链表的尾部"p"指向第二个链表的第一…… 题解列表 2022年09月17日 0 点赞 0 评论 314 浏览 评分:9.9
蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:这个题主要是找规律这里我们说一下他的规律,我们会发现a2 其实就是 a1 + c + a1 就是把上一个的字符串首尾拼接,中间再拼接一个字母,字母会逐步向加,从a 加到 z好了,再有不懂得…… 题解列表 2022年09月17日 0 点赞 0 评论 324 浏览 评分:9.9
IP判断,逐项判断思路清晰,变量少 摘要:解题思路: 没有说输入多少串字符串结束,结束条件是当输入End of file时结束程序 “End of file”这个字符串中间有空格,在while()中采用gets获取…… 题解列表 2022年09月18日 0 点赞 0 评论 364 浏览 评分:9.9
字符串对比 摘要:参考代码1#include<iostream> #include<math.h> #include<string.h> #include<stdlib.h> using namespace s…… 题解列表 2022年09月18日 0 点赞 0 评论 330 浏览 评分:9.9
朴素版本的dijkstra算法(有注释) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstring> using namespace std; c…… 题解列表 2022年09月18日 0 点赞 0 评论 339 浏览 评分:9.9