- 博客(9)
- 问答 (1)
- 收藏
- 关注
原创 例题:假设一颗二叉树中每个结点值为单个字符,采用二叉链存储结构存储。设计一个算法,先序遍历方法输出从根节点到每个叶子结点的路径
广义表生成二叉树,遍历每条路径
2022-11-15 10:00:00
4682
原创 OpenJudge1.3 答案
01:A+B问题#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]){ int a,b,c; scanf("%d %d",&a,&b); c=a+b; p
2022-04-29 12:29:54
3703
原创 Openjudge 1.1答案
01:Hello, World!#include <stdio.h>#include <stdlib.h>#include <stdbool.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(){ printf("Hello, World!\n"); return 0;}0
2022-03-08 16:22:21
6982
原创 OpenJudge1.4答案
01:判断数正负#include <stdio.h>#include <stdlib.h>#include <math.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]){ long N; scanf("%ld",&N); i
2022-01-13 19:47:16
4673
1
原创 OpenJudge1.6答案
01:与指定数字相同的数的个数#include <stdio.h>#include <math.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]){ int n,medium,m[100],i=1
2022-01-12 20:35:58
7364
1
原创 Open judge1.5答案
01:求平均年龄#include <stdio.h>#include <stdlib.h>#include <math.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]){ int n,count=0,ages=0,middle=0;
2022-01-12 15:18:49
3573
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人