EricYang

Tech Spot of Eric

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年4月20日

摘要: Check the difficulty of problemsTime Limit:2000MSMemory Limit:65536KTotal Submissions:1790Accepted:788DescriptionOrganizing a programming contest is not an easy job. To avoid making the problems too difficult, the organizer usually expect the contest result satisfy the following two terms:1. All of 阅读全文
posted @ 2011-04-20 16:55 Eric-Yang 阅读(211) 评论(0) 推荐(0) 编辑

2011年4月19日

摘要: Gold Balanced LineupTime Limit:2000MSMemory Limit:65536KTotal Submissions:6120Accepted:1846DescriptionFarmer John'sNcows (1 ≤N≤ 100,000) share many similarities. In fact, FJ has been able to narrow down the list of features shared by his cows to a list of onlyKdifferent features (1 ≤K≤ 30). For 阅读全文
posted @ 2011-04-19 16:44 Eric-Yang 阅读(354) 评论(0) 推荐(0) 编辑

2011年4月18日

摘要: Snowflake Snow SnowflakesTime Limit:4000MSMemory Limit:65536KTotal Submissions:17556Accepted:4509DescriptionYou may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program will read information about a collection of snowfl 阅读全文
posted @ 2011-04-18 18:31 Eric-Yang 阅读(313) 评论(0) 推荐(0) 编辑

摘要: Ultra-QuickSortTime Limit:7000MSMemory Limit:65536KTotal Submissions:20073Accepted:7102DescriptionIn this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted in 阅读全文
posted @ 2011-04-18 16:09 Eric-Yang 阅读(316) 评论(1) 推荐(0) 编辑

2011年4月11日

摘要: 一、STL简介 STL(Standard Template Library,标准模板库)是惠普实验室开发的一系列软件的统称 。它是由Alexander Stepanov、Meng Lee和David R Musser在惠普实验室工作时所开发 出来的。现在虽说它主要出现在C++中,但在被引入C++之前该技术就已经存在了很长的一段时间。 STL的代码从广义上讲分为三类:algorithm(算法)、container(容器)和iterator(迭代器),几乎所有的代码都采用了模板类和模版函数的方式,这相比于传统的由函数和类组成的库来说提供了更好的代码重用机会。在C++标准中,STL被组织为下面的13 阅读全文
posted @ 2011-04-11 11:21 Eric-Yang 阅读(260) 评论(0) 推荐(0) 编辑

2011年4月7日

摘要: All in AllTime Limit:1000MSMemory Limit:30000KTotal Submissions:18735Accepted:7461DescriptionYou have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not discuss in det 阅读全文
posted @ 2011-04-07 14:42 Eric-Yang 阅读(331) 评论(0) 推荐(0) 编辑

摘要: Spell checkerTime Limit:2000MSMemory Limit:65536KTotal Submissions:10470Accepted:3871DescriptionYou, as a member of a development team for a new spell checking program, are to write a module that will check the correctness of given words using a known dictionary of all correct words in all their for 阅读全文
posted @ 2011-04-07 14:41 Eric-Yang 阅读(178) 评论(0) 推荐(0) 编辑

摘要: Who's in the MiddleTime Limit:1000MSMemory Limit:65536KTotal Submissions:18274Accepted:10380DescriptionFJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as much or more than the median; half give as much o 阅读全文
posted @ 2011-04-07 14:39 Eric-Yang 阅读(238) 评论(0) 推荐(0) 编辑

2011年1月14日

摘要: Power NetworkTime Limit: 2000MSMemory Limit: 32768KTotal Submissions: 12227Accepted: 6697DescriptionA power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supplied with an amount s(u) = 0 of power, may produce an amount 0 = 阅读全文
posted @ 2011-01-14 16:45 Eric-Yang 阅读(416) 评论(0) 推荐(0) 编辑

2011年1月13日

摘要: Flip GameTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 12047Accepted: 5140DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying either it's black 阅读全文
posted @ 2011-01-13 17:09 Eric-Yang 阅读(599) 评论(1) 推荐(0) 编辑