[递归]母牛的故事-题解(C语言代码) 摘要:# MarkDown编辑器基本使用说明#include int sum(int i)//定义一个sum函数 { if(i==1)//前三年没有规律 { return 1; }…… 题解列表 2020年03月16日 0 点赞 0 评论 587 浏览 评分:6.0
字符串的反码-题解(C++代码) 摘要:```cpp #include #include #include using namespace std; int main(){ char a[80]; stri…… 题解列表 2020年03月16日 0 点赞 0 评论 596 浏览 评分:6.0
二级C语言-求偶数和-题解(C语言代码) 摘要: #include int main() { int n,x=1,sum=0; scanf("%d",&n); for(x;x 引用文本 ##…… 题解列表 2020年03月17日 0 点赞 1 评论 1378 浏览 评分:6.0
[编程入门]选择排序-题解(Python代码) 摘要://定义a为输入,分割,用列表形式 a=list(map(int,input().split())) a.sort() //用sort排序,默认升序 for i in a: p…… 题解列表 2020年03月19日 0 点赞 0 评论 1216 浏览 评分:6.0
C语言训练-计算1977!*-题解(Python代码) 摘要: import math print(math.factorial(1977)) 人生苦短,我用python 第一次发解题^^ 内容太少发不出那我就打多一点字8 …… 题解列表 2020年03月20日 0 点赞 0 评论 691 浏览 评分:6.0
24.重症病人优先 (C++代码)只做最好的思路! 摘要:听了老师傅讲解了堆之后,感觉没啥子新的收获,因为堆的代码没怎么接触过,本来想着用别的办法解决这题的,但是吧,sort排序,不方便接连选出第m个元素以及删除元素都是麻烦,用vector容器,碰上结构体,…… 题解列表 2020年03月21日 0 点赞 1 评论 490 浏览 评分:6.0
二叉树遍历-题解(C++代码) 摘要:```cpp #include #include using namespace std; //定义一个二叉树的结构体 typedef struct Tree{ char …… 题解列表 2020年03月21日 0 点赞 0 评论 1644 浏览 评分:6.0
标准二叉树遍历 (C++代码) 摘要:# ****使用create函数递归来构建二叉树,show函数实现后序的遍历, 代码如下 ** ``#include using namespace std; const int num=…… 题解列表 2020年03月21日 0 点赞 0 评论 1333 浏览 评分:6.0
求中间数-题解(Python代码)一行代码解决 摘要:Python的语法相对于其他语言的类型优势就是在这里 它可以很简洁 这道题就是一个嵌套 list()中为我们常用的一种输入模式 排序之后在列表中存在三个元素 索引分别为0/1/2 索引位置…… 题解列表 2020年03月21日 0 点赞 0 评论 799 浏览 评分:6.0
A+B for Input-Output Practice (VI)-题解(Java代码) 摘要:``` import java.util.Scanner; public class Main { public static void main(String[] args) { Sc…… 题解列表 2020年03月22日 0 点赞 0 评论 809 浏览 评分:6.0