- 博客(11)
- 收藏
- 关注
原创 数据结构之括号匹配问题
输入一个表达式,表达式中包括三种括号“()”、“[]”和“{}”,判断该表达式的括号是否匹配。没达到输出那个括号出错的目的,不过也能判断是否正确了。#include #include #include #define STACK_INIT_SIZE 100#define STACKINCREMENT 10typedef struct SqStack{ char *base;
2016-09-29 20:24:12 4746 1
原创 数据结构之栈的简单实现
栈的简单实现#include #include #include #define STACK_INIT_SIZE 100#define STACKINCREMENT 10typedef struct SqStack{ int *base; int top; int stacksize;}SqStack;void InitStack(SqStack &S){//构造一个
2016-09-29 19:22:17 347
原创 数据结构-单链表的操作
单链表的操作① 输入一组整型元素序列,使用尾插法建立一个带有头结点的单链表。② 实现该线性表的遍历。③ 在该单链表的第i个元素前插入一个整数。④ 删除该单链表中的第i个元素,其值通过参数将其返回。⑤ 建立两个按值递增有序的单链表 ,将他们合并成一个按值递减有序的单链表。要求利用原来的存储空间这是我数据结构老师留下的实验作业,提交之前先发个博客哈!
2016-09-29 16:35:20 840
原创 HDU 5878 I Count Two Three
I Count Two ThreeTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 892 Accepted Submission(s): 448Problem DescriptionI will sho
2016-09-26 20:56:04 425
转载 C语言中关于float、double、long double精度及数值范围理解
IEEE754浮点数的表示方法。C语言里对float类型数据的表示范围为-3.4*10^38~+3.4*10^38。double为-1.7*10^-308~1.7*10^308,long double为-1.2*10^-4932~1.2*10^4932.类型比特(位)数有效数字数值范围float
2016-09-24 16:58:26 1062
原创 codeforces A. Vitya in the Countryside
A. Vitya in the Countrysidetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputEvery summer Vitya comes to visi
2016-09-23 22:57:28 349
原创 HDU 5879 Cure
CureTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 580 Accepted Submission(s): 206Problem DescriptionGiven an integer n, w
2016-09-17 22:25:25 299
原创 HDU 1000 A + B Problem
A + B ProblemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 590862 Accepted Submission(s): 185348Problem DescriptionCalculat
2016-09-16 14:32:37 304
原创 POJ 3050 Hopscotch
HopscotchTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3394 Accepted: 2337DescriptionThe cows play the child's game of hopscotch in a non-traditional
2016-09-13 17:22:31 272
原创 HDU 1963 Investment 完全背包
InvestmentDescriptionJohn never knew he had a grand-uncle, until he received the notary's letter. He learned that his late grand-uncle had gathered a lot of money, somewhere in South-America
2016-09-08 11:09:30 326
原创 POJ 3117 World Cup
World CupTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9172 Accepted: 4599DescriptionA World Cup of association football is being held with teams fr
2016-09-04 16:16:32 344
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人