数字母(输入一串字符串统计字母个数) 摘要:解题思路:第一不用输字母,可以选择gets或者scanf函数,用for循环和if语句判断,统计个数注意事项:把大小写都要统计参考代码:#include<stdio.h>#include<string.…… 题解列表 2021年05月11日 0 点赞 0 评论 879 浏览 评分:0.0
Jam的计数法-------c 摘要:#include <iostream>#include <stdio.h>#include <math.h>#include <algorithm>#include <string.h> using …… 题解列表 2021年05月11日 0 点赞 0 评论 760 浏览 评分:0.0
不知道错哪里了... 摘要:```c #include int main(void) { int n, sn = 0, a; scanf("%d", &n); for(n; n > 0; n--) { …… 题解列表 2021年05月12日 0 点赞 0 评论 797 浏览 评分:0.0
字符串编辑 摘要:解题思路:swicth语句进行操作选项注意事项:参考代码:#include<stdio.h>#include<string.h>void del(char *ch,char c){ int i,key…… 题解列表 2021年05月12日 0 点赞 0 评论 662 浏览 评分:0.0
c++深度搜索解题 摘要:#### ### ## # 本题的原思路来自用户名为‘gyh0416’的用户(首先在此感谢这位用户),我在看到这位作者的题解后觉得非常好,便写了这个翻版。大家可以在本题题解中找到这位作者用C#写的代码…… 题解列表 2021年05月12日 0 点赞 0 评论 660 浏览 评分:0.0
题解 1249: 简单编码 摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include<string.h>#include<math.h>int main(){ char str[…… 题解列表 2021年05月12日 0 点赞 0 评论 605 浏览 评分:0.0
题解 1250: 素数回文 摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include<string.h>#include<math.h>int sushu(int n){ int…… 题解列表 2021年05月12日 0 点赞 0 评论 515 浏览 评分:0.0
模块化简单易懂解决问题(一看就会)[C] 摘要:解题思路:运用函数模块化思想编写两个子函数一个函数用来求循环长度一个函数用来求输入范围内的最大循环长度注意事项:不要忘记输入顺序可能是先输入大的后输入小的 如果先输入的值大于后面的值则需要调换位置参考…… 题解列表 2021年05月13日 0 点赞 0 评论 707 浏览 评分:0.0
[STL训练]{A} + {B}(用STL中的set) #用STL中的set求解```cpp#includeusingnamespacestd;intmain(){sets;inttmp,s1;while(cin>>s1){tmp=s1;cin>>s1;tmp+=s1;for(inti=0;i>s1;s.insert(s1);}for(autox:s)co 题解列表 2021年05月13日 0 点赞 0 评论 705 浏览 评分:0.0
一个简单易看的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int M, N; double L=0, H, T=0; // L为总路程,H为高度。 scanf("…… 题解列表 2021年05月13日 0 点赞 0 评论 530 浏览 评分:0.0