摘要: K -String TaskTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 118ADescriptionPetya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given strin 阅读全文
posted @ 2012-08-05 23:55 ismdeep 阅读(391) 评论(0) 推荐(0) 编辑
摘要: J -Union SetTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeFZU 1924Description在操作系统中存在着死锁问题。进程在执行过程中,因争夺资源而造成的一种互相等待的现象,若无外力作用,它们都将无法推进下去。此时称系统处于死锁状态或系统产生了死锁,这些永远在互相等待的进程称为死锁进程。由于资源占用是互斥的,当某个进程提出申请资源后,使得有关进程在无外力协助下,永远分配不到必需的资源而无法继续运行,这就产生了死锁。例如,如果线程A占用了资源1并 阅读全文
posted @ 2012-08-05 23:54 ismdeep 阅读(397) 评论(0) 推荐(0) 编辑
摘要: I -SnowTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1088DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不得不再次走上坡或者等待升降机来载你。Michael想知道载一个区域中最长底滑坡。区域由一个二维数组给出。数组的每个数字代表点的高度。下面是一个例子 1 2 3 4 516 17 18 19 615 24 25 20 714 23 22 21 813 阅读全文
posted @ 2012-08-05 23:53 ismdeep 阅读(288) 评论(0) 推荐(0) 编辑
摘要: H -Bookshelf 2Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 3628DescriptionFarmer John recently bought another bookshelf for the cow library, but the shelf is getting filled up quite quickly, and now the only available space is at the top.FJ hasNcows ( 阅读全文
posted @ 2012-08-05 23:52 ismdeep 阅读(429) 评论(0) 推荐(0) 编辑
摘要: G -Prime SumTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 2098Description把一个偶数拆成两个不同素数的和,有几种拆法呢?Input输入包含一些正的偶数,其值不会超过10000,个数不会超过500,若遇0,则结束。Output对应每个偶数,输出其拆成不同素数的个数,每个结果占一行。Sample Input30 26 0Sample Output3 2========================================= 阅读全文
posted @ 2012-08-05 23:51 ismdeep 阅读(250) 评论(0) 推荐(0) 编辑
摘要: F -Sign inTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 2022Descriptionpotato老师虽然很喜欢教书,但是迫于生活压力,不得不想办法在业余时间挣点外快以养家糊口。“做什么比较挣钱呢?筛沙子没力气,看大门又不够帅...”potato老师很是无奈。“张艺谋比你还难看,现在多有钱呀,听说还要导演奥运开幕式呢!你为什么不去娱乐圈发展呢?”lwg在一旁出主意。嗯,也是,为了生存,就委屈点到娱乐圈混混吧,马上就拍一部激光电影《杭电记忆――回 阅读全文
posted @ 2012-08-05 23:50 ismdeep 阅读(349) 评论(0) 推荐(0) 编辑
摘要: E -Little Elephant and SortingTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 205BDescriptionThe Little Elephant loves sortings.He has an arrayaconsisting ofnintegers. Let's number the array elements from 1 ton, then thei-th element will be d 阅读全文
posted @ 2012-08-05 23:48 ismdeep 阅读(193) 评论(0) 推荐(0) 编辑
摘要: D -Little Elephant and RozdilTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 205ADescriptionThe Little Elephant loves Ukraine very much. Most of all he loves town Rozdol (ukr. "Rozdil").However, Rozdil is dangerous to settle, so the Lit 阅读全文
posted @ 2012-08-05 23:47 ismdeep 阅读(365) 评论(0) 推荐(0) 编辑
摘要: C -Fire NetTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 1045DescriptionSuppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall.A blockhouse is 阅读全文
posted @ 2012-08-05 23:46 ismdeep 阅读(178) 评论(0) 推荐(0) 编辑
摘要: B -Sliding WindowTime Limit:12000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 2823DescriptionAn array of sizen≤ 106is given to you. There is a sliding window of sizekwhich is moving from the very left of the array to the very right. You can only see theknumbers in t 阅读全文
posted @ 2012-08-05 23:44 ismdeep 阅读(141) 评论(0) 推荐(0) 编辑
摘要: A -Happy TelephonesTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVALive 4512DescriptionIn the land of Eden, all phone conversations are happy ones. People complaining on the phone are immediately put in jail. To enforce this law, the police taps all phone conve 阅读全文
posted @ 2012-08-05 23:40 ismdeep 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 很高兴,,又有比赛了。。【ECJTU_ACM 11级队员2012年暑假训练赛(7) - A - Happy Telephones】【ECJTU_ACM 11级队员2012年暑假训练赛(7) - B - Sliding Window】【ECJTU_ACM 11级队员2012年暑假训练赛(7) - C - Fire Net】【ECJTU_ACM 11级队员2012年暑假训练赛(7) - D - Little Elephant and Rozdil】【ECJTU_ACM 11级队员2012年暑假训练赛(7) - E - Little Elephant and Sorting】【ECJTU_ACM 1 阅读全文
posted @ 2012-08-05 23:38 ismdeep 阅读(154) 评论(0) 推荐(0) 编辑