姜太公钓鱼 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,num=0; scanf("%d",&n); int s[n],i; for(i=0;i<n;i++…… 题解列表 2019年05月31日 0 点赞 0 评论 808 浏览 评分:9.9
ASCII码和toupper函数的结合 摘要:解题思路:用strlen求出本次输入的数组长度再根据ASCII码对应的小写字母范围用toupper函数调整注意事项:函数原型:extern int toupper(int c);在ctype.h文件中…… 题解列表 2019年06月02日 0 点赞 0 评论 772 浏览 评分:9.9
[编程入门]自定义函数之字符串拷贝 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ char a[100]; int n,m,i; scanf("%d",&n);…… 题解列表 2019年06月02日 2 点赞 1 评论 1075 浏览 评分:9.9
数列问题 (C语言代码)挺简单的 摘要:解题思路:按题模拟注意事项:无参考代码:#include<stdio.h>int main(){ int n,i; int a=3,b=4,c=5,sum; scanf("%d",&n); if(n=…… 题解列表 2019年06月02日 0 点赞 0 评论 659 浏览 评分:9.9
蓝桥杯算法提高VIP-删除重复元素-题解(C语言代码) 摘要:**解题思路:** 定义s为原串,t为字典,d为除重结果,tc为字典中每个字符出现的次数。遍历原串中每个字符,用该字符查询字典,若查找成功,即该字符在字典中出现过,可以为字符出现的次数加一,并结束对…… 题解列表 2019年06月06日 3 点赞 0 评论 1045 浏览 评分:9.9
单词得分-题解(C语言代码) 摘要:```c #include #include int main() { int len,sum=0; //len 是字符串的长度,sum是统计分数 char s[100001…… 题解列表 2019年06月08日 0 点赞 0 评论 1039 浏览 评分:9.9
优质题解 3sum-题解(C++代码) 摘要:#### 解题思路: 我们来分析一下这道题的特点,要我们找出三个数且和为0,那么除了三个数全是0的情况之外,肯定会有负数和正数,我们还是要先fix一个数,然后去找另外两个数,我们只要找到两个数且和为…… 题解列表 2019年06月09日 2 点赞 0 评论 600 浏览 评分:9.9
数据结构-图的遍历——DFS深度优先搜索 写简单点不好吗 摘要:```cpp #include using namespace std; const int N = 55; int matrix[N][N]; int flag[N]= {1}; in…… 题解列表 2019年06月10日 5 点赞 0 评论 1460 浏览 评分:9.9
数据结构-图的遍历——BFS广度优先搜索-题解(简单) 摘要:```cpp #include using namespace std; const int N = 55; int matrix[N][N]; int inq[N]= {1}; int…… 题解列表 2019年06月10日 5 点赞 0 评论 1028 浏览 评分:9.9
蓝桥杯历届试题-翻硬币-题解(C++代码) 摘要:贪心基础例题 貌似此题没有考虑无解的情况(逃~) ```cpp #include using namespace std; int main() { string …… 题解列表 2019年06月10日 0 点赞 2 评论 692 浏览 评分:9.9