首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
孙某人
我是菠菜哥小号(二刷),第三是我大号
关注
发消息
文章
0
题解
67
发帖
0
笔记
2
Ta的粉丝
207
关注数
1
粉丝数
207
获赞数
177
阅读数
52829
二叉排序树 - 华科 题解:还有22天上机考试,大佬们可以祝我上岸吗
自己写的通过率只有40%因为超出存储范围(主要是题目数据最大有十位),思路是我感觉写一下 1.层次遍历建立二叉树,用#include头文件(非递归),先在main里面赋给其存储 (i)queue Q 初始化队列 &n...
P1396
2024年3月5日 18:02
回复 2
|
赞 3
|
浏览 835
N阶楼梯上楼问题 题解:这题真坤贼啊,偷摸用递归时间不达标
#include <iostream> using namespace std; long long c[100]; /* int a(int n){ if(n==0) return 1; if(n<0) return 0; ...
P1413
2024年2月28日 19:14
回复 7
|
赞 3
|
浏览 912
二叉搜索树 题解:新手方法易于理解
自己想的,水平比较菜用的原始办法,估计都能看懂 两个要点 1.先建立二叉排序树,跟以前的题一样 2.要判断的序列再建立二叉排序树(跟第一步步骤一样) 3.判断这两个树是不是同一个(重点) #include <iostream> #include ...
P1317
2024年2月28日 17:05
回复 0
|
赞 5
|
浏览 904
二叉排序树2 题解:
#include <iostream> #include <string.h> using namespace std; typedef struct node{ int data; struct node *l,*r; }node,*L...
P1411
2024年2月27日 15:10
回复 0
|
赞 1
|
浏览 678
二叉树遍历2 题解:新手总结
#include <iostream> #include<string.h> using namespace std; //typedef struct node { //int data; //struct node *lchild,*rchil...
P1401
2024年2月27日 11:57
回复 0
|
赞 6
|
浏览 988
Hanoi塔问题 题解:易错点总结
#include<iostream> using namespace std; int count=0; void printa(char A,char C){ if(count==5){ cout <<endl; count=0; ...
P1082
2024年2月22日 18:18
回复 0
|
赞 1
|
浏览 890
括号的匹配 题解:新手方法简单易懂
#include <iostream> #include <string.h> using namespace std; int main(){ int n,cc=0,num=0,top=-1,flag=0; char now; cin >&...
P1067
2024年2月18日 20:21
回复 0
|
赞 6
|
浏览 1.2k
括号匹配 题解:
#include<iostream> #include <string.h> using namespace std; int main(){ char a[10005],stack[10005]; for(int i=0;i<10005;i++...
P1501
2024年2月18日 18:28
回复 0
|
赞 2
|
浏览 648
查找 - 北邮 题解:求助大佬,33%一直过不去,自己调试没问题
#include <iostream> #include <string.h> using namespace std; int main(){ char a[1005],d[1005]; char b[1000][1005]; int c=0,n...
P1387
2024年2月18日 12:07
回复 1
|
赞 1
|
浏览 855
合并果子 题解:新手易错
#include <iostream> #include <string.h> using namespace std; int main(){ int n; cin >>n; long long int a[10005],b[1000...
P1544
2024年2月17日 10:45
回复 0
|
赞 2
|
浏览 921
最简真分数 题解:求大佬帮我看一下这个小问题,考虑很久都没出来
#include<iostream> #include <string.h> using namespace std; int main(){ int n=0,c=0,index=0,x=0,y=0; double a[1000]; double b[1...
P1180
2024年1月25日 22:39
回复 3
|
赞 0
|
浏览 740
简单背包问题 题解:贪心算法
#include <iostream> using namespace std; int main(){ int weigh=0,n=0,index=0; int a[10000]; while(cin >>weigh){ cin >...
P1035
2024年2月5日 18:09
回复 0
|
赞 0
|
浏览 942
日期累加 题解:易错点:如果跨年需要重新判断平年和闰年
#include <iostream> using namespace std; int ifrun(int y){ if((y%100!=0&&y%4==0)||(y%400==0)){ return 1; } else return 0...
P1446
2024年2月4日 10:57
回复 0
|
赞 0
|
浏览 846
二叉树遍历 题解:
#include <iostream> using namespace std; char cc[100][105]; int c=0,d=0; typedef struct node { char data; struct node *l,*r; ...
P1161
2024年2月3日 10:44
回复 0
|
赞 1
|
浏览 1.2k
统计字符 题解:求助大佬,为什么不能用while(1)是平台的事情吗?
#include <iostream> #include <string.h> using namespace std; int main(){ char a[100][10]; char b[100]; int c[1000]; for(in...
P1320
2024年2月1日 21:27
回复 4
|
赞 1
|
浏览 946
大整数加法 题解:求大佬帮忙看看,一直显示栈溢出错误 50%
#include <iostream> #include <string.h> using namespace std; int main(){ char a[100][1200]; char b[100][1200]; char cc[100][...
P1474
2024年1月28日 13:26
回复 4
|
赞 2
|
浏览 796
全排列 题解:新手易于理解模板(B站视频套用)
#include <stdio.h> #include <stdlib.h> #include <string.h> char b[1000][10];//输出数组 int c=0; void swap (char A[],int p,int ...
P1185
2024年1月31日 14:08
回复 0
|
赞 17
|
浏览 1.3k
删除最大最小数 题解:易错点总结
#include <iostream> #include <string.h> #include <math.h> using namespace std; int main(){ int n; cin >>n; in...
P1022
2024年1月26日 13:19
回复 0
|
赞 3
|
浏览 1.0k
质因数个数 题解:易错点:超时
#include <iostream> #include <math.h> using namespace std; int cc(long long int c){ int index=1; //double c1=c; for(int i=2...
P1156
2024年1月25日 23:23
回复 0
|
赞 3
|
浏览 971
打印日期 题解:求大佬帮我分析一下这种情况的原因
这是完整代码,通过率100%没问题 #include<iostream> #include <string.h> using namespace std; int main(){ int y=0,d=0,m=0,c=0,d1=0; /...
P1410
2024年1月19日 10:50
回复 2
|
赞 1
|
浏览 743
1
2
3
4
本科学校:河北科技师范学院
目标学校:贵州大学
N诺官方认证
研究生 - 贵州大学