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 · 327 阅读 · 0 评论 -
hdu 2782 The Worm Turns
The Worm Turns Time Limit: 8000/4000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 910 Accepted Submission(s): 348 Problem Description Winston the Worm just原创 2016-11-06 19:31:13 · 447 阅读 · 0 评论 -
codeforces 363D
原题链接 D. Renting Bikes time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A group of n schoolboys decided to ride bikes. As nobody of t原创 2017-02-24 15:05:27 · 457 阅读 · 0 评论 -
codeforces 363C
原题链接 C. Fixing Typos time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Many modern text editors automatically check the spelling of the u原创 2017-02-24 14:59:46 · 303 阅读 · 0 评论 -
codeforces 362A
A. Two Semiknights Meet time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A boy Petya loves原创 2017-03-01 20:37:49 · 374 阅读 · 0 评论 -
LightOJ 1008
Description Fibsieve 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 · 437 阅读 · 0 评论 -
hdu 1175 连连看
连连看 Description “连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以在棋盘上消去。不好意思,由于我以前没有玩过连连看,咨询了同学的意见,连线不能从外面绕过去的,但事实上这是错的。现在已经酿成大祸,就只能将错原创 2016-11-01 20:21:27 · 341 阅读 · 0 评论 -
poj 1988 Cube Stacking
Cube Stacking Time Limit: 2000MS Memory Limit: 30000K Total Submissions: 24167 Accepted: 8479 Case Time Limit: 1000MS Description Farmer John and Betsy are playing a game with N (1 <= N <= 30,0原创 2016-11-17 18:40:33 · 262 阅读 · 0 评论 -
poj 1703 Find them, Catch them
Find them, Catch them Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 42482 Accepted: 13075 Description The police office in Tadu City decides to say ends原创 2016-11-10 14:54:34 · 222 阅读 · 0 评论 -
hdu 1584 蜘蛛牌
蜘蛛牌 Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3103 Accepted Submission(s): 1338 Problem Description 蜘蛛牌是windows xp操作系统自带的一款纸牌游戏,游原创 2016-11-03 17:54:33 · 312 阅读 · 0 评论 -
hdu 2510 符号三角形
符号三角形 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1782 Accepted Submission(s): 922 Problem Description 符号三角形的 第1行有n个由“+”和”-“组成的符号 ,以原创 2016-11-05 20:42:09 · 362 阅读 · 0 评论 -
poj 1328 Radar Installation
先看一下题目: Description Assume 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 · 300 阅读 · 0 评论 -
hdu1444 Maya Calendar
D - Maya Calendar Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %llu Submit Status Description During his last sabbatical, professor M. A. Ya made a surprisin原创 2016-10-09 14:58:26 · 553 阅读 · 0 评论 -
堆和栈的区别
转载链接:http://blog.youkuaiyun.com/hairetz/article/details/4141043/ 题外话: 好久没有写东西了,最近有些懈怠,被考研的事儿有些干扰了。希望能尽快调整过来。 嗯。。。快要期末考试了(尽管大佬们都不太在意),最近做算法作业的时候,发现了一个严重的问题,C的指针掌握的乱七八糟,所以看了几篇博客,补了补指针。 兼:对于堆栈存储问题,只是在刚转载 2018-01-03 16:49:13 · 300 阅读 · 0 评论
分享