1124: C语言训练-大、小写问题 摘要:#这个题有点意思,测试字符串里面有空格的话容易出错,还特意强调了回车表示结束,所以空格结束的情况也需要排除掉。 ```cpp #include #include #include using…… 题解列表 2023年02月23日 0 点赞 1 评论 139 浏览 评分:6.0
031: [编程入门]自定义函数之字符串反转 摘要:```cpp #include #include #include using namespace std; // 写一函数,使输入的一个字符串按反序存放, // 在主函数中输入并输出反序…… 题解列表 2023年02月23日 0 点赞 1 评论 321 浏览 评分:9.9
1012: [编程入门]字符串分类统计 摘要:```cpp #include #include #include using namespace std; /* 题目描述 编写一函数,由实参传来一个字符串,统计此字符串中字母、数…… 题解列表 2023年02月23日 0 点赞 1 评论 698 浏览 评分:9.9
排列序数(c++)超短 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstring>using namespace std;int main(){…… 题解列表 2023年02月23日 0 点赞 0 评论 344 浏览 评分:9.9
嗨嗨!我又来了昂!!!! 摘要:```cpp #include using namespace std; int kunkun(int x){//判断素数 if(x==1) { return 0; } i…… 题解列表 2023年02月23日 0 点赞 0 评论 656 浏览 评分:9.9
缩位求和C++非递归写法 摘要:解题思路:思路很简单,难点就是要读懂题和清楚字符串与数字相互转换的语法。1 接收字符串S。2 建立循环,循环内容是: 1 将字符串的每一个值都转换为数字并相加得到sum。2 sum转换为新的字符串S。…… 题解列表 2023年02月23日 0 点赞 0 评论 317 浏览 评分:9.9
1431: 蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cmath> #include <algorithm> using namespace std; #d…… 题解列表 2023年02月23日 0 点赞 0 评论 250 浏览 评分:6.0
怎么还没人??那我来吧!!!! 摘要:```cpp #include using namespace std; int main(){ int a,b,c,d,e; scanf("%d",&a) ; i…… 题解列表 2023年02月22日 0 点赞 0 评论 465 浏览 评分:9.9
怎么又没人??那我来吧!!!! 摘要:```cpp #include char a[40000]; int b[300],c[300],d[300]; int main(){ gets(a); int i,j=0,k=0,…… 题解列表 2023年02月22日 0 点赞 0 评论 472 浏览 评分:9.9
记录相同字符的必会想法 摘要:解题思路:字符串有空格 用getline输入 然后统计相同字符的个数 比较一下注意事项:这里大小写忽略 统一一下即可参考代码:#include<bits/stdc++.h>using namespac…… 题解列表 2023年02月22日 0 点赞 0 评论 524 浏览 评分:9.9