摘要: 2325: [ZJOI2011]道馆之战Time Limit: 40 SecMemory Limit: 256 MBSubmit: 813Solved: 309[Submit][Status]Description口袋妖怪(又名神奇宝贝或宠物小精灵)红/蓝/绿宝石中的水系道馆需要经过三个冰地才能到达... 阅读全文
posted @ 2014-06-29 22:45 cssystem 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 3531: [Sdoi2014]旅行Time Limit: 20 SecMemory Limit: 512 MBSubmit: 323Solved: 192[Submit][Status]DescriptionS国有N个城市,编号从1到N。城市间用N-1条双向道路连接,满足从一个城市出发可以到达其它... 阅读全文
posted @ 2014-06-29 22:33 cssystem 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 3083: 遥远的国度Time Limit: 10 SecMemory Limit: 128 MBSubmit: 839Solved: 192[Submit][Status]Description描述zcwwzdjn在追杀十分sb的zhx,而zhx逃入了一个遥远的国度。当zcwwzdjn准备进入遥远... 阅读全文
posted @ 2014-06-29 22:29 cssystem 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 2243: [SDOI2011]染色Time Limit: 20 SecMemory Limit: 512 MBSubmit: 1861Solved: 739[Submit][Status]Description给定一棵有n个节点的无根树和m个操作,操作有2类:1、将节点a到节点b路径上所有点都染成... 阅读全文
posted @ 2014-06-29 22:17 cssystem 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1036: [ZJOI2008]树的统计CountTime Limit: 10 SecMemory Limit: 162 MBSubmit: 4726Solved: 1984[Submit][Status]Description一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w。我们将以下... 阅读全文
posted @ 2014-06-29 22:10 cssystem 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 2654: tree(陈立杰)Time Limit: 30 SecMemory Limit: 512 MBSubmit: 229Solved: 91[Submit][Status]Description 给你一个无向带权连通图,每条边是黑色或白色。让你求一棵最小权的恰好有need条白色边的生成树。 题目保证有解。Input 第一行V,E,need分别表示点数,边数和需要的白色边数。 接下来E行 每行s,t,c,col表示这边的端点(点从0开始标号),边权,颜色(0白色1黑色)。Output 一行表示所求生成树的边权和。Sample Input2 2 10 1 1 10 1 2 0S... 阅读全文
posted @ 2014-04-09 17:48 cssystem 阅读(860) 评论(0) 推荐(0) 编辑
摘要: Problem Description There are n lights in a circle numbered from 1 to n. The left of light 1 is light n, and the left of light k (1= 0), if the left of light i is on !!! Given the initiation state, please find all lights’ state after M second. (2 5 #include 6 #include 7 #include ... 阅读全文
posted @ 2013-09-23 17:43 cssystem 阅读(212) 评论(1) 推荐(0) 编辑
摘要: Problem of PrecisionTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 24 Accepted Submission(s): 20 Problem Description Input The first line of input gives the number of cases, T. T test cases follow, each on a sepa... 阅读全文
posted @ 2013-09-23 17:42 cssystem 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 奥运Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 82 Accepted Submission(s): 40 Problem Description 北京迎来了第一个奥运会,我们的欢呼声响彻中国大地,所以今年的奥运金牌 day day up!比尔盖兹坐上鸟巢里,手里摇着小纸扇,看的不亦乐乎,被俺们健儿的顽强拼搏的精神深深的感动了。反正我的钱也多的没地方放了,他对自己说,我自己也来举办一个奥运会,看谁的更火。... 阅读全文
posted @ 2013-09-23 17:39 cssystem 阅读(136) 评论(0) 推荐(0) 编辑
摘要: PendantTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 58 Accepted Submission(s): 41 Problem Description On Saint Valentine's Day, Alex imagined to present a special pendant to his girl friend made by K kind of pearls. The pendant... 阅读全文
posted @ 2013-09-23 17:34 cssystem 阅读(261) 评论(0) 推荐(0) 编辑
摘要: A Simple Math ProblemTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 44 Accepted Submission(s): 42 Problem Description Lele now is thinking about a simple function f(x).If x = 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x-3) + ……... 阅读全文
posted @ 2013-09-23 17:32 cssystem 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 最惊心动魄的矩阵一章~~~Tr ATime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 51 Accepted Submission(s): 45 Problem Description A为一个方阵,则Tr A表示A的迹(就是主对角线上各项的和),现要求Tr(A^k)%9973。 Input 数据的第一行是一个T,表示有T组数据。每组数据的第一行有n(2 2 #include ... 阅读全文
posted @ 2013-09-23 17:13 cssystem 阅读(286) 评论(0) 推荐(1) 编辑
摘要: Snail’s troubleTime Limit: 20000/10000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 48 Accepted Submission(s): 32 Problem Description Once upon a time, there was a poor snail. Every day, it tried very hard to crawl forward, while there was a keeper ... 阅读全文
posted @ 2013-09-23 17:10 cssystem 阅读(214) 评论(0) 推荐(1) 编辑
摘要: QueuingTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 36 Accepted Submission(s): 29 Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our da... 阅读全文
posted @ 2013-09-23 17:09 cssystem 阅读(281) 评论(0) 推荐(1) 编辑
摘要: 胜利大逃亡(续)Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 60 Accepted Submission(s): 40 Problem Description Ignatius再次被魔王抓走了(搞不懂他咋这么讨魔王喜欢)……这次魔王汲取了上次的教训,把Ignatius关在一个n*m的地牢里,并在地牢的某些地方安装了带锁的门,钥匙藏在地牢另外的某些地方。刚开始Ignatius被关在(sx,sy)的位置,离开... 阅读全文
posted @ 2013-09-23 17:03 cssystem 阅读(307) 评论(0) 推荐(1) 编辑
摘要: EquationsTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 50 Accepted Submission(s): 36 Problem Description Consider equations having the following form: a*x1^2+b*x2^2+c*x3^2+d*x4^2=0a, b, c, d are integers from the interval [-50,5... 阅读全文
posted @ 2013-09-23 17:02 cssystem 阅读(286) 评论(0) 推荐(1) 编辑
摘要: The Stable Marriage ProblemTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 32 Accepted Submission(s): 23 Problem Description The stable marriage problem consists of matching members of two different sets according to the member’s ... 阅读全文
posted @ 2013-09-23 16:59 cssystem 阅读(412) 评论(0) 推荐(1) 编辑
摘要: 稳定婚配~~~~~~我是看白书看懂的,当然网上的资料也很好~http://blog.sina.com.cn/s/blog_5f48a0a10101150v.htmlhttp://hi.baidu.com/acmdearway/item/745d54c8160d3dd3964452e9http://en.wikipedia.org/wiki/Stable_marriage_problem简单来说,就是每个男生向自己喜欢的女生表白,然后每个女生从中选择自己认为最好的男生,然后接受这个男生,拒绝其他男生,那么被拒绝的那些男生再重复以上过程,可以证明一定存在合法解,我不得不说读入输出太蛋疼了,主程序还 阅读全文
posted @ 2013-09-23 16:56 cssystem 阅读(359) 评论(0) 推荐(1) 编辑
摘要: The Worm TurnsTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 76 Accepted Submission(s): 37 Problem Description Winston the Worm just woke up in a fresh rectangular patch of earth. The rectangular patch is divided into cells, and ... 阅读全文
posted @ 2013-09-22 17:17 cssystem 阅读(296) 评论(0) 推荐(1) 编辑
摘要: http://blog.csdn.net/fp_hzq/article/details/7770689http://blog.csdn.net/swm8023/article/details/6923452 阅读全文
posted @ 2013-08-06 16:12 cssystem 阅读(142) 评论(0) 推荐(0) 编辑
摘要: A Simple GameTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/65535 K (Java/Others)Total Submission(s): 36 Accepted Submission(s): 29 Problem Description Agrael likes play a simple game with his friend Animal during the classes. In this Game there are n piles of stones num... 阅读全文
posted @ 2013-07-24 21:02 cssystem 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Be the WinnerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 38 Accepted Submission(s): 29 Problem Description Let's consider m apples divided into n groups. Each group contains no more than 100 apples, arranged in a line. You can... 阅读全文
posted @ 2013-07-24 21:01 cssystem 阅读(311) 评论(0) 推荐(0) 编辑
摘要: JohnTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 31 Accepted Submission(s): 23 Problem Description Little John is playing very funny game with his younger brother. There is one big box filled with M&Ms of different colors. At f... 阅读全文
posted @ 2013-07-24 21:00 cssystem 阅读(216) 评论(0) 推荐(0) 编辑
摘要: kiki's gameTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 40000/1000 K (Java/Others)Total Submission(s): 34 Accepted Submission(s): 26 Problem Description Recently kiki has nothing to do. While she is bored, an idea appears in his mind, she just playes the checkerboard game... 阅读全文
posted @ 2013-07-24 20:58 cssystem 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Good Luck in CET-4 Everybody!Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 45 Accepted Submission(s): 39 Problem Description 大学英语四级考试就要来临了,你是不是在紧张的复习?也许紧张得连短学期的ACM都没工夫练习了,反正我知道的Kiki和Cici都是如此。当然,作为在考场浸润了十几载的当代大学生,Kiki和Cici更懂得考前的放... 阅读全文
posted @ 2013-07-24 20:57 cssystem 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 悼念512汶川大地震遇难同胞——选拔志愿者Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 33 Accepted Submission(s): 27 Problem Description 对于四川同胞遭受的灾难,全国人民纷纷伸出援助之手,几乎每个省市都派出了大量的救援人员,这其中包括抢险救灾的武警部队,治疗和防疫的医护人员,以及进行心理疏导的心理学专家。根据要求,我校也有一个奔赴灾区救灾的名额,由于广大师生... 阅读全文
posted @ 2013-07-24 20:56 cssystem 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Team QueueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 60 Accepted Submission(s): 36 Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is no... 阅读全文
posted @ 2013-07-24 20:53 cssystem 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Brave GameTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 46 Accepted Submission(s): 40 Problem Description 十年前读大学的时候,中国每年都要从国外引进一些电影大片,其中有一部电影就叫《勇敢者的游戏》(英文名称:Zathura),一直到现在,我依然对于电影中的部分电脑特技印象深刻。今天,大家选择上机考试,就是一种勇敢(brave)的选择;这个短学期,我... 阅读全文
posted @ 2013-07-24 20:52 cssystem 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Windows Message QueueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 50 Accepted Submission(s): 33 Problem Description Message queue is the basic fundamental of windows system. For each process, the system maintains a message queu... 阅读全文
posted @ 2013-07-24 20:51 cssystem 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 愚人节的礼物Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 32 Accepted Submission(s): 30 Problem Description 四月一日快到了,Vayko想了个愚人的好办法——送礼物。嘿嘿,不要想的太好,这礼物可没那么简单,Vayko为了愚人,准备了一堆盒子,其中有一个盒子里面装了礼物。盒子里面可以再放零个或者多个盒子。假设放礼物的盒子里不再放其他盒子。用()表示一个盒子,B表... 阅读全文
posted @ 2013-07-24 20:51 cssystem 阅读(225) 评论(0) 推荐(0) 编辑
摘要: FlipperTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 39 Accepted Submission(s): 29 Problem Description Little Bobby Roberts (son of Big Bob, of Problem G) plays this solitaire memory game called Flipper. He starts with n cards, ... 阅读全文
posted @ 2013-07-24 20:48 cssystem 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 看病要排队Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 43 Accepted Submission(s): 31 Problem Description 看病要排队这个是地球人都知道的常识。不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级... 阅读全文
posted @ 2013-07-24 20:48 cssystem 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 简单计算器Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 58 Accepted Submission(s): 44 Problem Description 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有... 阅读全文
posted @ 2013-07-24 20:47 cssystem 阅读(226) 评论(0) 推荐(0) 编辑
摘要: As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is the fastest all over the world ^v^). But here comes a problem, there is only one railway where all the trains stop. So al. 阅读全文
posted @ 2013-07-24 20:45 cssystem 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Problem Description ACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(.As a smart ACMer, you want to get ACboy out of the monster's labyrinth.But when you arrive at the gate of the maze, the monste say :&q 阅读全文
posted @ 2013-07-24 20:43 cssystem 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Square CoinsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 50 Accepted Submission(s): 48 Problem Description People in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins ... 阅读全文
posted @ 2013-07-24 20:38 cssystem 阅读(226) 评论(0) 推荐(0) 编辑
摘要: piTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 47 Accepted Submission(s): 27 Problem Description 计算圆周率到小数点后5n 位。(本题不可打表) Input 正整数n=1;i--){11 ans=TWO.add(ans.multiply(td(i)).divide(td(2*i+1),1800,Big... 阅读全文
posted @ 2013-07-24 20:36 cssystem 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 循环多少次?Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 37 Accepted Submission(s): 24 Problem Description 我们知道,在编程中,我们时常需要考虑到时间复杂度,特别是对于循环的部分。例如,如果代码中出现for(i=1;i 2 #include 3 #include 4 #include 5 #include 6 #include 7 using na... 阅读全文
posted @ 2013-07-24 20:33 cssystem 阅读(357) 评论(0) 推荐(0) 编辑
摘要: The BalanceTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 72 Accepted Submission(s): 50 Problem Description Now you are asked to measure a dose of medicine with a balance and a number of weights. Certainly it is not always achiev... 阅读全文
posted @ 2013-07-24 20:28 cssystem 阅读(183) 评论(0) 推荐(0) 编辑
摘要: FruitTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 35 Accepted Submission(s): 26 Problem Description 转眼到了收获的季节,由于有TT的专业指导,Lele获得了大丰收。特别是水果,Lele一共种了N种水果,有苹果,梨子,香蕉,西瓜……不但味道好吃,样子更是好看。于是,很多人们慕名而来,找Lele买水果。甚至连大名鼎鼎的HDU ACM总教头 lcy 也来了。... 阅读全文
posted @ 2013-07-24 20:23 cssystem 阅读(269) 评论(0) 推荐(0) 编辑