- 博客(201)
- 收藏
- 关注
原创 第三次集训个人训练计划
不知不觉,进入集训队已经整整一年了,这一次,我已经是参加第三次假期集体训练了。回想起来,我能够在集训队里呆着的时间最多不过3年,已经没有多少次训练能够让我去挥霍,让我没有目标的混日子了。前几天家里有事没有和其他同学一起开始正式训练,今天,我处理完了所有的事情,在接下来的二十天里,我会聚精会神,努力办好集训这一件事。之前学过的知识点不断地反复练习,基本算法熟练再熟练;学过又忘记的知识点重新来过(我知
2015-01-19 20:53:18
729
原创 HDU lines && TIANKENG’s restaurant
linesTime Limit: 5000/2500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 334 Accepted Submission(s): 157Problem DescriptionJohn has several lines
2014-11-30 10:41:40
715
原创 BC who is the best?(HDU 5123)
who is the best?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 129 Accepted Submission(s): 88Problem DescriptionThere are N
2014-11-30 09:06:53
868
原创 Broken Keyboard SDUTOJ
题目描述Bruce Force\'s keyboard is broken, only a few keys are still working. Bruce has figured out he can still type texts by switching the keyboard layout whenever he needs to type a letter whic
2014-11-26 20:37:04
907
原创 Primes Problem (HDU5104) 素数问题
Primes ProblemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 796 Accepted Submission(s): 368Problem DescriptionGiven a numbe
2014-11-22 19:51:28
1298
原创 完美数
完全数,又称完美数或完备数,是一些特殊的自然数:它所有的真因子(即除了自身以外的约数)的和,恰好等于它本身,完全数不可能是楔形数。例如:第一个完全数是6,它有约数1、2、3、6,除去它本身6外,其余3个数相加,1+2+3=6,恰好等于本身。第二个完全数是28,它有约数1、2、4、7、14、28,除去它本身28外,其余5个数相加,1+2+4+7+14=28,也恰好等于本身。后面的数是496、
2014-11-22 16:20:13
2963
转载 ACMer训练计划
看完人家的博客,发现任重道远。。。一位高手对我的建议:一般要做到50行以内的程序不用调试、100行以内的二分钟内调试成功.acm主要是考算法的,主要时间是花在思考算法上,不是花在写程序与debug上。 下面给个计划你练练:第一阶段:练经典常用算法,下面的每个算法给我打上十到二十遍,同时自己精简代码,因为太常用,所以要练到写时不用想,10-15分钟内打完,甚至关掉显示器都
2014-11-16 20:28:37
1035
原创 因式分解
今天又做到了那个因式分解的题目,经过一年后,竟然把我之前的算法忘得一干二净,xianglehaochangshijiandoume
2014-11-13 16:28:26
2329
2
原创 IQ Test
DescriptionPetya is preparing for IQ test and he has noticed that there many problems like: you are given a sequence, find the next number. Now Petya can solve only problems with arithmetic or geo
2014-10-11 15:44:32
873
原创 CF —— IQ Test
IQ TestTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionPetya is preparing for IQ test and he has noticed that there many problems
2014-10-11 15:36:03
848
原创 POJ 2503 Babelfish
BabelfishTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 33188 Accepted: 14269DescriptionYou have just moved from Waterloo to a big city. The people her
2014-10-09 20:32:00
558
转载 sscanf函数的应用
此文所有的实验都是基于下面的程序: char str[10]; for (int i = 0; i 执行完后str的值为 str = "!!!!!!!!!!" 我们把str的每个字符都初始化为惊叹号,当str的值发生变化时,使用printf打印str的值,对比先前的惊叹号,这样就可以方便的观察str发生了怎样的变化。下面我们做几个小实验,看看使用sscanf
2014-10-08 18:24:47
813
原创 《C++面向对象程序设计》 谭浩强 第二章 总结
C++的四个特征:抽象,封装,继承,多态。1.类是对象的抽象,对象是类的具体事例,换句话说,类是抽象的,对象是具体的。2.任何一个对象都应该具有两个要素,即属性和行为,也就是说,每个对象都是由数据和函数两部分组成的。3.封装:(1):将有关的数据和操作代码封装在一个对象中,形成一个基本单位,各个对象之间相互独立,互不干扰。(2):将对象中某些部分对外隐蔽,即
2014-09-19 20:11:07
1798
原创 无向图边连通性 ZOJ2588 Burning Bridges
Burning BridgesTime Limit:5000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionFerry Kingdom is a nice little country located on N islands that ar
2014-08-26 09:48:52
616
原创 strstr函数
串结构练习——字符串匹配Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice SDUTOJ 2125Description 给定两个字符串string1和string2,判断string2是否为string1的子串。
2014-08-14 16:10:35
1021
原创 hdu 1086 You can Solve a Geometry Problem too
You can Solve a Geometry Problem tooDescriptionMany geometry(几何)problems were designed in the ACM/ICPC. And now, I also prepare a geometry problem for this final exam. According to the exp
2014-08-13 23:49:20
588
原创 POJ(1151)——Atlantis(线段树 扫描线)
AtlantisTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThere are several ancient Greek texts that contain descriptions of the
2014-08-12 00:45:40
688
原创 HDU1505——City Game(扫描线)
City GameTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionBob is a strategy game programming specialist. In his new city building gam
2014-08-11 14:35:11
543
原创 POJ 3349—— Snowflake Snow Snowflakes
You 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 snowflakes, and
2014-08-10 15:53:38
675
原创 青蛙的约会——模线性方程
青蛙的约会Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 1061Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是
2014-08-09 21:06:37
482
原创 I Hate It——线段树
I Hate ItTime Limit:3000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要
2014-08-08 20:45:59
497
原创 Fermat’s Chirstmas Theorem——素数筛
Fermat’s Chirstmas TheoremTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionIn a letter dated December 25, 1640; the great mathemati
2014-08-05 23:22:07
519
原创 For Fans of Statistics——vector
For Fans of StatisticsTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionHave you ever thought about how many people are transpor
2014-08-05 21:46:32
521
原创 Surprising Strings——MAP
Surprising StringsTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe D-pairs of a string of letters are the ordered pairs of
2014-08-05 21:39:50
508
原创 Hardwood Species——MAP
Hardwood SpeciesTime Limit:10000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionHardwoods are the botanical group of trees that have broad le
2014-08-05 21:31:55
515
原创 Message Flood——MAP
Message FloodTime Limit:1500MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionWell, how do you feel about mobile phone? Your answer would probably
2014-08-05 21:17:47
835
原创 合并果子之哈夫曼树——优先队列解决哈夫曼
树-堆结构练习——合并果子之哈夫曼树Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit StatusDescription 在一个果园里,多多已经将所有的果子打了下来,而且按果子的不同种类分成了不同的堆。多多决定把所有的果子合成一堆。每一次合并,
2014-08-05 21:07:05
938
原创 Sequence——优先队列
SequenceTime Limit:6000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionGiven m sequences, each contains n non-negative integer. Now we may se
2014-08-05 20:57:59
791
原创 Black Box——优先队列
Black BoxTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionOur Black Box represents a primitive database. It can save an integer array and has a speci
2014-08-05 20:28:44
593
原创 Black Box——优先队列
Black BoxTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionOur Black Box represents a primitive database. It can save an integer
2014-08-05 20:25:50
866
原创 Reward——前向星,拓扑排序
RewardTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionDandelion's uncle is a boss of a factory. As the spring festival is coming
2014-08-01 21:32:07
580
原创 产生冠军——拓扑排序
产生冠军Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription有一群人,打乒乓球比赛,两两捉对撕杀,每两个人之间最多打一场比赛。球赛的规则如下:如果A打败了B,B又打败了C,而A与C之间没有进行过比赛,那么
2014-08-01 21:11:02
632
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人