
--------数据结构----------
文章平均质量分 71
DTL66
细节决定成败
展开
-
循环
N - N Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description 求n个数的最小公倍数。 Input 输入包含多个测试实例,每个测试实例的开始是一个正整数n,然后是n个正整数。原创 2016-05-29 21:34:22 · 303 阅读 · 0 评论 -
实验二 栈-表达式求值
实验课:表达式终于写完喽,为了保健壮性,写完后又加了加了一些条件来判断非法数据; 主程序: #include #include #include #include #include "Stack.h" using namespace std; #define Error -8 bool Isdig(char ch) { return (ch>='0'&&ch<='9')?tr原创 2016-09-26 21:50:43 · 566 阅读 · 0 评论 -
学生信息管理系统----线性表
数据结构线性表实验,学生管理系统,c语言的时候不是自己写的,现在又有机会自己写一份,定义了全局的链表,老师说函数没参数,最好用ADT,就到这吧,不想改了,看来以后写程序要考虑函数的通用性,应该系统的学学C++了,用对象的思想来写程序了; SqList: #include #include #include #include const int MAXN=100+10; typede原创 2016-09-19 20:44:19 · 6413 阅读 · 0 评论 -
语法
暑期(二) 984:35:36 1200:00:00 Overview Problem Status Rank (45) A B C D E F G H I J K L M N O P Q R S T K - K Time Limit:1000MS Memory Limit:262144KB 64bit IO F转载 2016-07-05 22:58:18 · 315 阅读 · 0 评论 -
自动类型转换
N - N Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Description Vitaly has an array of n distinct integers. Vitaly wants to divide this ar原创 2016-06-27 21:27:10 · 609 阅读 · 0 评论 -
除法
HOME PROBLEM STATUS CONTEST Add Contest Statistic LOGOUT dtl666 UPDATE 暑期(二) 744:48:54 1200:00:00 Overview Problem Status Rank (99849) A B C D E原创 2016-06-25 23:08:04 · 400 阅读 · 0 评论 -
勤劳的蜜蜂
一只小蜜蜂... Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 59292 Accepted Submission(s): 21464 Problem Description 有一只经过训练的蜜蜂只能爬向右侧相原创 2016-05-31 15:09:22 · 458 阅读 · 0 评论 -
你咋不上天呢 递归----分不乘,分类加
超级楼梯 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 46943 Accepted Submission(s): 23940 Problem Description 有一楼梯共M级,刚开始时你在第一级,若每次只能原创 2016-05-30 19:33:18 · 360 阅读 · 0 评论 -
插入有序 的 三个位置
Hot~~招聘——巴卡斯(杭州),亚信科技,壹晨仟阳(杭州) 数列有序! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 73308 Accepted Submission(s): 31071原创 2016-05-30 19:12:10 · 491 阅读 · 0 评论 -
老牛永远不会死去
H - H Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description 有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?原创 2016-05-30 14:15:19 · 698 阅读 · 0 评论 -
进制转换——一个一个换
P - P Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description 输入一个十进制数N,将它转换成R进制数输出。 Input 输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整原创 2016-05-29 23:51:44 · 422 阅读 · 0 评论 -
数据结构-实验四 二叉树
数据结构- 二叉树递归: #include #include #include #include #include #include using namespace std; typedef struct BiTNode{ char date; struct BiTNode *lchild,*rchild; }BiTNode,*BiTree; void Pre_CreateBiTre原创 2016-10-27 12:55:21 · 864 阅读 · 0 评论