12 2015 档案
摘要:第一:二叉树三种遍历方式(由前两种得到第三种 HDU1710)#include#include#includeusing namespace std;int num=0;struct donser{ int data; donser*lson; donser*rson;};don...
阅读全文
摘要:The order of a TreeProblem DescriptionThe shape of a binary search tree is greatly related to the order of keys we insert. To be precisely:1.insert a ...
阅读全文
摘要:Binary Tree TraversalsProblem DescriptionA binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint binar...
阅读全文
摘要:实验一:编写C++顺序表类,利用顺序存储结构存储数据,并实现其相应功能。功能1:完成顺序表的初始化。功能2:实现顺序表的置空功能。功能3:实现顺序表的输入功能。功能4:求顺序表中第i个元素,要求返回第i个元素是否存在的结果,并返回第i个元素值,利用如下的函数形式实现: bool get_Ele...
阅读全文
摘要:http://xcacm.hfut.edu.cn/contest.php?cid=1009打了一下午,最后一道题2333,前面比较基础。问题 A: 求成绩最大值和最小值题目描述GX是宣城校区A班的一名同学,如果GX在B班的话,那么这两个班的平均成绩都会提高.现在给出A班与B班的人数以及成绩,求GX成...
阅读全文
摘要:HDU模拟题, 枚举1002 1004 1013 1015 1017 1020 1022 1029 1031 1033 1034 1035 1036 1037 1039 1042 1047 1048 1049 1050 1057 1062 1063 1064 1070 1073 1075 1082 ...
阅读全文
摘要:Problem DescriptionOne day, Lin Ji wake up in the morning and found that his pethamster escaped. He searched in the room but didn’t find the hamster. ...
阅读全文
摘要:苦找了好几天动态库,程序可以运行了,结果没有图标还是少了运行库很苦恼,发现Qt 官方有一键动态发布功能感觉自己萌萌的,来自qt吧亲测可用。集成开发环境 QtCreator 目前生成图形界面程序 exe 大致可以分为两类:Qt Widgets Application 和 Qt Quick Appli...
阅读全文
摘要:在别人代码基础上做的,课设刚好用上了,贴出来分享Qt5.5.1实现。图片自己找。#ifndef DIALOG_H#define DIALOG_H#include #include #include #include #include #include namespace Ui {class Dial...
阅读全文
摘要:减肥记湫湫给了你每日食物清单,上面描述了当天她想吃的每种食物能带给她的幸福程度,以及会增加的卡路里量。Input 输入包含多组测试用例。 每组数据以一个整数n开始,表示每天的食物清单有n种食物。 接下来n行,每行两个整数a和b,其中a表示这种食物可以带给湫湫的幸福值(数值越大,越幸福),b表...
阅读全文
摘要:粘过来的文章有的符号都乱码了,只是留下作一备忘。背包问题九讲2.0 beta1.22.0 beta 版本,修订历史及最新版本请访问https://github.com/tianyicui/pack 查阅。本文版权归原作者所有,采用CC BY-NC-SA 协议发布。Contents1 01 背包问题3...
阅读全文
摘要:Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s...
阅读全文