摘要: SPF Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 8139 Accepted: 3723 Description Consider the two networks shown below. Assuming that da 阅读全文
posted @ 2016-09-27 00:03 Candy? 阅读(648) 评论(0) 推荐(1) 编辑
摘要: 2763: [JLOI2011]飞行路线 Description Alice和Bob现在要乘飞机旅行,他们选择了一家相对便宜的航空公司。该航空公司一共在n个城市设有业务,设这些城市分别标记为0到n-1,一共有m种航线,每种航线连接两个城市,并且航线有一定的价格。Alice和Bob现在要从一个城市沿着 阅读全文
posted @ 2016-09-26 22:56 Candy? 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: Full Tank? Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7248 Accepted: 2338 Description After going through the receipts from your car t 阅读全文
posted @ 2016-09-26 22:53 Candy? 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: Play on Words Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 11846 Accepted: 4050 Description Some of the secret doors contain a very inte 阅读全文
posted @ 2016-09-25 23:58 Candy? 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Ideal Path Time Limit: 10000MS Memory Limit: 65536K Total Submissions: 1754 Accepted: 240 Description New labyrinth attraction is open in New Lostland 阅读全文
posted @ 2016-09-25 23:22 Candy? 阅读(615) 评论(0) 推荐(0) 编辑
摘要: 题目描述 小a住的国家被僵尸侵略了!小a打算逃离到该国唯一的国际空港逃出这个国家。 该国有N个城市,城市之间有道路相连。一共有M条双向道路。保证没有自环和重边。 K个城市已经被僵尸控制了,如果贸然闯入就会被感染TAT...所以不能进入。由其中任意城市经过不超过S条道路就可以到达的别的城市,就是危险城 阅读全文
posted @ 2016-09-24 23:54 Candy? 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 题目描述 某国法律规定,只要一个由N*M个小方块组成的旗帜符合如下规则,就是合法的国旗。(毛熊:阿嚏——) 从最上方若干行(>=1)的格子全部是白色的。 接下来若干行(>=1)的格子全部是蓝色的 剩下的行(>=1)全部是红色的 从最上方若干行(>=1)的格子全部是白色的。 接下来若干行(>=1)的格 阅读全文
posted @ 2016-09-24 23:49 Candy? 阅读(219) 评论(0) 推荐(0) 编辑
摘要: The Fewest Coins Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 6299 Accepted: 1922 Description Farmer John has gone to town to buy some f 阅读全文
posted @ 2016-09-23 20:45 Candy? 阅读(201) 评论(0) 推荐(0) 编辑
摘要: AreYouBusy Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3985 Accepted Submission(s): 1580 Prob 阅读全文
posted @ 2016-09-23 19:53 Candy? 阅读(348) 评论(0) 推荐(0) 编辑
摘要: //这是一个教灰哥用数组写二叉树的教程//题意:知道中序后序遍历求先序遍历#include #include #include #include using namespace std; const int N=10; int la,lb; char a[N],b[N]; struct node{ int ls,rs; char c; }tree[N]; int cnt=0; i... 阅读全文
posted @ 2016-09-23 18:46 Candy? 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1029: [JSOI2007]建筑抢修 Description 小刚在玩JSOI提供的一个称之为“建筑抢修”的电脑游戏:经过了一场激烈的战斗,T部落消灭了所有z部落的入侵者。但是T部落的基地里已经有N个建筑设施受到了严重的损伤,如果不尽快修复的话,这些建筑设施将会完全毁坏。现在的情况是:T部落基地 阅读全文
posted @ 2016-09-23 16:16 Candy? 阅读(484) 评论(0) 推荐(0) 编辑
摘要: TELE Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 4957 Accepted: 2726 Description A TV-network plans to broadcast an important football 阅读全文
posted @ 2016-09-23 15:47 Candy? 阅读(527) 评论(0) 推荐(0) 编辑
摘要: Find Metal Mineral Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 3397 Accepted Submission(s): 1 阅读全文
posted @ 2016-09-23 14:04 Candy? 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Balance Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 13717 Accepted: 8616 Description Gigel has a strange "balance" and he wants to pois 阅读全文
posted @ 2016-09-22 23:45 Candy? 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Bone Collector II Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4229 Accepted Submission(s): 22 阅读全文
posted @ 2016-09-22 23:06 Candy? 阅读(450) 评论(0) 推荐(0) 编辑
摘要: Making the Grade Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6445 Accepted: 2994 Description A straight dirt road connects two fields o 阅读全文
posted @ 2016-09-22 22:26 Candy? 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Robberies Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 21060 Accepted Submission(s): 7808 Prob 阅读全文
posted @ 2016-09-22 12:48 Candy? 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 25602 Accepted Submissi 阅读全文
posted @ 2016-09-21 23:58 Candy? 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Dividing Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 68769 Accepted: 17955 Description Marsha and Bill own a collection of marbles. The 阅读全文
posted @ 2016-09-21 23:43 Candy? 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Piggy-Bank Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 10787 Accepted: 5258 Description Before ACM can do anything, a budget must be pr 阅读全文
posted @ 2016-09-21 22:53 Candy? 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1216: [HNOI2003]操作系统 Description 写一个程序来模拟操作系统的进程调度。假设该系统只有一个CPU,每一个进程的到达时间,执行时间和运行优先级都是已知的。其中运行优先级用自然数表示,数字越大,则优先级越高。如果一个进程到达的时候CPU是空闲的,则它会一直占用CPU直到该进 阅读全文
posted @ 2016-09-21 17:41 Candy? 阅读(354) 评论(0) 推荐(0) 编辑
摘要: Cow Marathon Time Limit: 2000MS Memory Limit: 30000K Total Submissions: 5117 Accepted: 2492 Case Time Limit: 1000MS Description After hearing about th 阅读全文
posted @ 2016-09-21 17:03 Candy? 阅读(230) 评论(0) 推荐(0) 编辑
摘要: C. The Values You Can Make time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. The Values 阅读全文
posted @ 2016-09-20 23:49 Candy? 阅读(257) 评论(0) 推荐(0) 编辑
摘要: A. NP-Hard Problem time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. NP-Hard Problem ti 阅读全文
posted @ 2016-09-20 23:24 Candy? 阅读(290) 评论(0) 推荐(0) 编辑
摘要: B. Remainders Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Remainders Game tim 阅读全文
posted @ 2016-09-20 22:42 Candy? 阅读(665) 评论(0) 推荐(0) 编辑
摘要: B. Appleman and Tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Appleman and Tre 阅读全文
posted @ 2016-09-20 11:42 Candy? 阅读(1123) 评论(0) 推荐(0) 编辑
摘要: Apple Tree Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 26995 Accepted: 8007 Description There is an apple tree outside of kaka's house. 阅读全文
posted @ 2016-09-19 23:53 Candy? 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1864: [Zjoi2006]三色二叉树 Description Input 仅有一行,不超过500000个字符,表示一个二叉树序列。 仅有一行,不超过500000个字符,表示一个二叉树序列。 Output 输出文件也只有一行,包含两个数,依次表示最多和最少有多少个点能够被染成绿色。 输出文件也只 阅读全文
posted @ 2016-09-19 23:49 Candy? 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Godfather Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 6121 Accepted: 2164 Description Last years Chicago was full of gangster fights an 阅读全文
posted @ 2016-09-19 23:44 Candy? 阅读(768) 评论(0) 推荐(0) 编辑
摘要: C. Team time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Team time limit per test 1 sec 阅读全文
posted @ 2016-09-19 12:50 Candy? 阅读(307) 评论(0) 推荐(0) 编辑