
C语言
文章平均质量分 86
tt_twilight
当你身处不那么如意的环境时,要么赶紧远离,要么
尽力改变。
展开
-
HDU1559 最大子矩阵
动态规划中最大子段和问题的拓展,最大子段和是在一维空间中 。 给定n个整数(可能为负数),序列a[1],a[2],a[3],…,a[n],求子段和的最大值,即Max{0,a[i]+a[i+1]+…+a[j]},1<=i<=j<=n,此题将二维数组压缩一下,使其成为一维空间内求最大子段和问题即可。原创 2016-05-08 08:46:09 · 301 阅读 · 0 评论 -
hdu 2782 The Worm Turns
The Worm TurnsTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 910 Accepted Submission(s): 348Problem DescriptionWinston the Worm just原创 2016-11-06 19:31:13 · 414 阅读 · 0 评论 -
codeforces 363D
原题链接D. Renting Bikestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA group of n schoolboys decided to ride bikes. As nobody of t原创 2017-02-24 15:05:27 · 429 阅读 · 0 评论 -
codeforces 363C
原题链接C. Fixing Typostime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMany modern text editors automatically check the spelling of the u原创 2017-02-24 14:59:46 · 279 阅读 · 0 评论 -
codeforces 362A
A. Two Semiknights Meettime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA boy Petya loves原创 2017-03-01 20:37:49 · 347 阅读 · 0 评论 -
LightOJ 1008
DescriptionFibsieve had a fantabulous (yes, it's an actual word) birthday party this year. He had so many gifts that he was actually thinking of not having a party next year.Among these gifts ther原创 2016-11-02 21:14:25 · 413 阅读 · 0 评论 -
hdu 1175 连连看
连连看Description“连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以在棋盘上消去。不好意思,由于我以前没有玩过连连看,咨询了同学的意见,连线不能从外面绕过去的,但事实上这是错的。现在已经酿成大祸,就只能将错原创 2016-11-01 20:21:27 · 308 阅读 · 0 评论 -
poj 1988 Cube Stacking
Cube StackingTime Limit: 2000MS Memory Limit: 30000KTotal Submissions: 24167 Accepted: 8479Case Time Limit: 1000MSDescriptionFarmer John and Betsy are playing a game with N (1 <= N <= 30,0原创 2016-11-17 18:40:33 · 244 阅读 · 0 评论 -
poj 1703 Find them, Catch them
Find them, Catch themTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 42482 Accepted: 13075DescriptionThe police office in Tadu City decides to say ends原创 2016-11-10 14:54:34 · 202 阅读 · 0 评论 -
hdu 1584 蜘蛛牌
蜘蛛牌Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3103 Accepted Submission(s): 1338Problem Description蜘蛛牌是windows xp操作系统自带的一款纸牌游戏,游原创 2016-11-03 17:54:33 · 286 阅读 · 0 评论 -
hdu 2510 符号三角形
符号三角形Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1782 Accepted Submission(s): 922Problem Description符号三角形的 第1行有n个由“+”和”-“组成的符号 ,以原创 2016-11-05 20:42:09 · 339 阅读 · 0 评论 -
poj 1328 Radar Installation
先看一下题目:DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar inst原创 2016-10-09 15:34:56 · 271 阅读 · 0 评论 -
hdu1444 Maya Calendar
D - Maya CalendarTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionDuring his last sabbatical, professor M. A. Ya made a surprisin原创 2016-10-09 14:58:26 · 527 阅读 · 0 评论 -
堆和栈的区别
转载链接:http://blog.youkuaiyun.com/hairetz/article/details/4141043/题外话:好久没有写东西了,最近有些懈怠,被考研的事儿有些干扰了。希望能尽快调整过来。嗯。。。快要期末考试了(尽管大佬们都不太在意),最近做算法作业的时候,发现了一个严重的问题,C的指针掌握的乱七八糟,所以看了几篇博客,补了补指针。兼:对于堆栈存储问题,只是在刚转载 2018-01-03 16:49:13 · 271 阅读 · 0 评论