2013年4月8日

Codeforces 116C. Party 树的深度

摘要: C. Partytime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA company hasnemployees numbered from1ton. Each employee either has no immediate manager or exactly one immediate manager, who is another employee with a different number. An employeeAis sai 阅读全文

posted @ 2013-04-08 16:27 电子幼体 阅读(381) 评论(0) 推荐(0) 编辑

Codeforces 278C. Learning Languages 图的遍历

摘要: C. Learning Languagestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe "BerCorp" company has gotnemployees. These employees can usemapproved official languages for the formal correspondence. The languages are numbered with integers fr 阅读全文

posted @ 2013-04-08 16:25 电子幼体 阅读(226) 评论(0) 推荐(0) 编辑

Codeforces 131D. Subway 寻找环-树的最短路径

摘要: D. Subwaytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA subway scheme, classic for all Berland cities is represented by a set ofnstations connected bynpassages, each of which connects exactly two stations and does not pass through any others. 阅读全文

posted @ 2013-04-08 16:22 电子幼体 阅读(265) 评论(0) 推荐(0) 编辑

Codeforces 246D. Colorful Graph

摘要: D. Colorful Graphtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've got an undirected graph, consisting ofnvertices andmedges. We will consider the graph's vertices numbered with integers from 1 ton. Each vertex of the graph has a col 阅读全文

posted @ 2013-04-08 16:13 电子幼体 阅读(355) 评论(0) 推荐(0) 编辑

Codeforces 217A. Ice Skating 搜索

摘要: A. Ice Skatingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBajtek is learning to skate on ice. He's a beginner, so his only mode of transportation is pushing off from a snow drift to the north, east, south or west and sliding until he land 阅读全文

posted @ 2013-04-08 16:08 电子幼体 阅读(723) 评论(0) 推荐(0) 编辑

Codeforces 24A. Ring road

摘要: A. Ring roadtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNowadays the one-way traffic is introduced all over the world in order to improve driving safety and reduce traffic jams. The government of Berland decided to keep up with new trends. Fo 阅读全文

posted @ 2013-04-08 15:59 电子幼体 阅读(255) 评论(0) 推荐(0) 编辑

Codeforces 103B. Cthulhu 寻找奈亚子

摘要: B. Cthulhutime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output...Once upon a time a man came to the sea. The sea was stormy and dark. The man started to call for the little mermaid to appear but alas, he only woke up Cthulhu...Whereas on the other en 阅读全文

posted @ 2013-04-08 15:49 电子幼体 阅读(232) 评论(0) 推荐(0) 编辑

Codeforces 263 D. Cycle in Graph 环

摘要: D. Cycle in Graphtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've got a undirected graphG, consisting ofnnodes. We will consider the nodes of the graph indexed by integers from 1 ton. We know that each node of graphGis connected by edge 阅读全文

posted @ 2013-04-08 15:46 电子幼体 阅读(323) 评论(0) 推荐(0) 编辑

Codeforces 107A. Dorm Water Supply 搜图

摘要: A. Dorm Water Supplytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe German University in Cairo (GUC) dorm houses are numbered from1ton. Underground water pipes connect these houses together. Each pipe has certain direction (water can flow onl 阅读全文

posted @ 2013-04-08 15:40 电子幼体 阅读(427) 评论(0) 推荐(0) 编辑

Codeforces 34D. Road Map 树的遍历

摘要: D. Road Maptime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere arencities in Berland. Each city has its index — an integer number from1ton. The capital has indexr1. All the roads in Berland are two-way. The road system is such that there is exa 阅读全文

posted @ 2013-04-08 15:34 电子幼体 阅读(361) 评论(0) 推荐(0) 编辑

导航