- 博客(136)
- 资源 (2)
- 收藏
- 关注

转载 The Importance of Algorithms
The Importance of AlgorithmsBy lbackstrom — topcoder memberDiscuss this article in the forumsIntroductionThe first step towards an understanding of why the study and know
2015-10-11 21:23:12
615

转载 【转】让人深思的退役贴
3xian退役贴---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------最后一天,漫天飘起了雪
2015-09-27 23:01:55
482

转载 ACRush 楼天成回忆录
利用假期空闲之时,将这几年 GCJ , ACM , TopCoder 参加的一些重要比赛作个回顾。首先是 GCJ2006 的回忆。Google Code Jam 2006一波三折:Google Code Jam 2006 是我第一次到美国参加现场的程序设计比赛。 Google Code Jam 2006 的比赛地点设在了纽约,这次纽约之行之前的签证出了不小的问题,这里非常感谢大家对我们
2015-09-27 22:59:49
609
转载 链式前向星
转载:深度理解链式前向星我们首先来看一下什么是前向星.前向星是一种特殊的边集数组,我们把边集数组中的每一条边按照起点从小到大排序,如果起点相同就按照终点从小到大排序,并记录下以某个点为起点的所有边在数组中的起始位置和存储长度,那么前向星就构造好了.用len[i]来记录所有以i为起点的边在数组中的存储长度.用head
2016-03-21 21:31:08
583
转载 再次写给我们这些浮躁的程序员
转:http://blog.youkuaiyun.com/yzsind/article/details/6168854再次写给我们这些浮躁的程序员 2010年初写过一篇博客(我们是一群和平年代充满浮躁与抱怨的程序员),一年过去了,社会好像更浮躁,也有网友问我这方面的问题,于是有了下面这篇文章,再次写给我们这些刚入行浮躁的程序员,如何成长,以下是列出了一些成长的心得,我们不必每条都去实践,但是优
2016-03-15 22:37:05
396
转载 动态图文讲解8大排序算法
转自cricode.com排序算法可以分为内部排序和外部排序,内部排序是数据记录在内存中进行排序,而外部排序是因排序的数据很大,一次不能容纳全部的排序记录,在排序过程中需要访问外存。 常见的内部排序算法有:插入排序、希尔排序、选择排序、冒泡排序、归并排序、快速排序、堆排序、基数排序等。算法一:插入排序插入排序是一种最简单直观的
2016-03-15 22:30:19
1760
原创 Codeforces Round #339 (Div. 2) B. Gena's Code
B. Gena's Codetime limit per test0.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt's the year 4527 and the tanks game that
2016-01-15 22:34:58
305
原创 Codeforces Round #339 (Div. 2) A. Link/Cut Tree
A. Link/Cut Treetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputProgrammer Rostislav got seriously interes
2016-01-15 22:22:39
289
原创 Educational Codeforces Round 5 A. Comparing Two Long Integers
A. Comparing Two Long Integerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two very long
2016-01-15 22:01:39
365
原创 Educational Codeforces Round 5 B. Dinner with Emma B. Dinner with Emma
B. Dinner with Emmatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputJack decides to invite Emma out for a di
2016-01-15 22:01:38
367
原创 Educational Codeforces Round 5 C. The Labyrinth
C. The Labyrinthtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a rectangular field of n × m
2016-01-15 22:01:34
360
原创 Educational Codeforces Round 5 D. Longest k-Good Segment
D. Longest k-Good Segmenttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe array a with n integers is g
2016-01-15 22:01:00
404
原创 Codeforces Round #338 (Div. 2) B. Longtail Hedgehog DP
B. Longtail Hedgehogtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThis Christmas Santa gave Masha a magi
2016-01-09 22:34:49
377
原创 Codeforces Round #338 (Div. 2) A. Bulbs
A. Bulbstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya wants to turn on Christmas lights consisting
2016-01-09 22:30:46
300
原创 Codeforces Round #335 (Div. 2) B. Testing Robots
B. Testing Robotstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Cybernetics Failures (CF) organisatio
2016-01-09 21:26:27
363
原创 Codeforces Round #335 (Div. 2) C. Sorting Railway Cars
C. Sorting Railway Carstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn infinitely long railway has a tr
2016-01-09 21:26:22
329
原创 Codeforces Round #335 (Div. 2) A. Magic Spheres
A. Magic Spherestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCarl is a beginner magician. He has a blue
2016-01-09 21:21:08
339
原创 Codeforces Round #334 (Div. 2) C. Alternative Thinking
C. Alternative Thinkingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKevin has just recevied his disappo
2016-01-09 21:05:40
309
原创 Codeforces Round #334 (Div. 2) B. More Cowbell
B. More Cowbelltime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKevin Sun wants to move his precious collec
2016-01-09 21:04:47
418
原创 Codeforces Round #334 (Div. 2) A. Uncowed Forces
A. Uncowed Forcestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKevin Sun has just finished competing in C
2016-01-09 19:00:08
317
原创 51nod 1005 大数加法 大数运算
大数运算修改 隐藏话题1005 大数加法基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注给出2个大整数A,B,计算A+B的结果。Input第1行:大数A第2行:大数B(A,B的长度 Output
2015-12-19 15:54:22
1876
原创 BestCoder Round #66 (div.2)1003 GTW likes function HDU5597
GTW likes function Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
2015-12-18 22:07:51
388
原创 BestCoder Round #66 (div.2)1001 GTW likes math HDU5595
GTW likes math Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
2015-12-18 22:02:22
338
原创 BestCoder Round #65 1002 ZYB's Game HDU5591
ZYB's Game Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
2015-12-18 21:54:53
311
原创 BestCoder Round #65 1001 ZYB's Biology HDU5590
ZYB's Biology Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
2015-12-18 21:45:59
526
原创 Codeforces Round #333 (Div. 2) A. Two Bases
A. Two Basestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter seeing the "ALL YOUR BASE ARE BELONG TO U
2015-12-03 15:36:58
377
原创 BestCoder Round #64 (div.2) 1003 Array HDU 5587
Array Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
2015-11-28 23:23:15
285
原创 BestCoder Round #64 (div.2) 1002 Sum HDU 5586 联机算法
Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
2015-11-28 23:18:18
324
原创 BestCoder Round #64 (div.2) 1001 Numbers HDU 5585 模拟
Numbers Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
2015-11-28 23:13:13
349
原创 Contest1040 - 第三届“图灵杯”NEUQ-ACM程序设计大赛(个人赛) H: 橙子姐姐的梦 基数排序
问题 H: 橙子姐姐的梦时间限制: 1 Sec 内存限制: 256 MB提交: 427 解决: 68[提交][状态][讨论版]题目描述橙子姐姐偷走了船长的宝藏并买下了n(1输入第一行输入一个整数t(1输出对于每组数据,输出橙子姐姐总共花的钱.样例输入25 13 2 1 5 46 22 5 9 7 1 1样例输出
2015-11-28 22:01:48
806
原创 Contest1040 - 第三届“图灵杯”NEUQ-ACM程序设计大赛(个人赛) G: 田鼠看热闹(Ⅰ)
问题 G: 田鼠看热闹(Ⅰ)时间限制: 1 Sec 内存限制: 128 MB提交: 56 解决: 16[提交][状态][讨论版]题目描述田鼠闲来无事到集市上偷吃干货,突然被人群吸引住了,他挤进人群中一看,原来他们在玩一个叫做“开心翻转”的游戏,游戏初始如下有一串只含0和1的数字序列(例如:1 0 1 0 1 1 0 ),长度为n,
2015-11-28 21:51:59
836
原创 Contest1040 - 第三届“图灵杯”NEUQ-ACM程序设计大赛(个人赛) E: 好学的coco
问题 E: 好学的coco时间限制: 1 Sec 内存限制: 128 MB提交: 169 解决: 57[提交][状态][讨论版]题目描述coco是一个好学的男生,一天coco,田鼠和男神zcx一起去图书馆约自习,看到图书馆进进出出的人,coco突然想知道每天在哪个时刻图书馆里面的人最多,coco想知道人数最多的时候有多少人,于是问了田鼠和男神zcx,男神zc
2015-11-28 21:45:23
803
原创 Contest1040 - 第三届“图灵杯”NEUQ-ACM程序设计大赛(个人赛) C: 橙子姐姐的围棋
问题 C: 橙子姐姐的围棋时间限制: 5 Sec 内存限制: 256 MB提交: 726 解决: 101[提交][状态][讨论版]题目描述 橙子姐姐是东秦有名的围棋高手当他打败东秦所有围棋高手后,独自对着棋盘发呆。他发现,他下的奇葩围棋棋盘由m*n(1)个点组成了若干个正方形(每个小格子都是1个正方形),现在橙子姐想知道这个棋盘中有多少个正方形。图为19*
2015-11-28 21:39:55
1091
原创 Contest1040 - 第三届“图灵杯”NEUQ-ACM程序设计大赛(个人赛) B: 田鼠买酒喝
问题 B: 田鼠买酒喝时间限制: 1 Sec 内存限制: 128 MB提交: 797 解决: 183[提交][状态][讨论版]题目描述田鼠买酒喝田鼠上次偷喝酒被抓住后,船长好好的惩罚了他一顿,现在田鼠安分了许多。有一天,田鼠实在是犯了酒瘾,只好带着好朋友LJC来找船长:“老板,要不你卖我们酒喝吧!?”船长皱了皱眉头:“我这酒可是无价的
2015-11-28 21:35:33
740
原创 Contest1040 - 第三届“图灵杯”NEUQ-ACM程序设计大赛(个人赛) A: 编程世界的大门
问题 A: 编程世界的大门时间限制: 1 Sec 内存限制: 128 MB提交: 458 解决: 300[提交][状态][讨论版]题目描述输出“Hello World Hello zcx hello ccc hello zts hello ljc”不包括引号输入无需输入输出输出字符串“Hello World Hello
2015-11-28 21:29:32
616
原创 Codeforces Round #332 (Div. 2) C. Day at the Beach
C. Day at the Beachtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day Squidward, Spongebob and Patric
2015-11-22 00:25:33
276
原创 Codeforces Round #332 (Div. 2) B. Spongebob and Joke
B. Spongebob and Joketime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Patrick was gone shopping, Spon
2015-11-21 23:59:15
284
原创 Codeforces Round #332 (Div. 2) A. Patrick and Shopping
A. Patrick and Shoppingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputToday Patrick waits for a visit from
2015-11-21 23:53:04
308
原创 FOJ有奖月赛-2015年11月 Problem F 攻占计划
Problem F 攻占计划Accept: 113 Submit: 232Time Limit: 1000 mSec Memory Limit : 131072 KB Problem DescriptionA国和B国正在进行一场战争,A国有n座城市,这些城市被m条有向道路相连,这些道路不会形成环路。其中有一部分城市比较特殊,其拥有粮仓,拥有粮仓的城市不能
2015-11-15 21:16:10
651
原创 FOJ有奖月赛-2015年11月 Problem B 函数求解
Problem B 函数求解Accept: 171 Submit: 540Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description给出n,求f(n)。 Input第一行一个正整数T,表示数据组数。 接下来T行,每行一个正整数n。 T Output对于每组数据,输
2015-11-15 19:22:46
417
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人