数据结构-平衡二叉树的基本操作 (C++代码) 摘要: Splay,以及所有基础操作参考代码:#ifndef LOCAL #include <bits/stdc++.h> #endif constexpr auto Inf = 0X…… 题解列表 2019年05月22日 0 点赞 0 评论 962 浏览 评分:9.9
数据结构-n阶Hanoi塔问题 (C++代码)---momoc 摘要:解题思路:水题。注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int step = 1; void move(char x,in…… 题解列表 2019年05月23日 1 点赞 0 评论 845 浏览 评分:9.9
筛排处理 (C语言代码) 摘要:#include<stdio.h>int main(){ int x,t,i,j,n,b[100],a[100]; while(scanf("%d",&n)!=EOF&&n!=0) { x=0; …… 题解列表 2019年05月25日 0 点赞 0 评论 1235 浏览 评分:9.9
幸运儿 (C++语言代码)我的代码绝对看着特别有亲切感 摘要:解题思路这道题跟出圈的思想只是有一个地方不一样,就是每次小循环完之后记得是的计算的数重新归零,如若不然可能会出现bug,可自行调试注意事项:参考代码:/*n 个人围成一圈, 并依次编号1~n,。从编号…… 题解列表 2019年05月31日 1 点赞 0 评论 1616 浏览 评分:9.9
姜太公钓鱼 (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 评论 768 浏览 评分:9.9
ASCII码和toupper函数的结合 摘要:解题思路:用strlen求出本次输入的数组长度再根据ASCII码对应的小写字母范围用toupper函数调整注意事项:函数原型:extern int toupper(int c);在ctype.h文件中…… 题解列表 2019年06月02日 0 点赞 0 评论 738 浏览 评分:9.9
[编程入门]自定义函数之字符串拷贝 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ char a[100]; int n,m,i; scanf("%d",&n);…… 题解列表 2019年06月02日 2 点赞 1 评论 1033 浏览 评分: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 评论 619 浏览 评分:9.9
蓝桥杯算法提高VIP-删除重复元素-题解(C语言代码) 摘要:**解题思路:** 定义s为原串,t为字典,d为除重结果,tc为字典中每个字符出现的次数。遍历原串中每个字符,用该字符查询字典,若查找成功,即该字符在字典中出现过,可以为字符出现的次数加一,并结束对…… 题解列表 2019年06月06日 3 点赞 0 评论 991 浏览 评分:9.9
单词得分-题解(C语言代码) 摘要:```c #include #include int main() { int len,sum=0; //len 是字符串的长度,sum是统计分数 char s[100001…… 题解列表 2019年06月08日 0 点赞 0 评论 1012 浏览 评分:9.9