随笔分类 -  图论

摘要:I Curse Myself Time Limit: 8000/4000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Problem Description There is a connected undirected 阅读全文
posted @ 2017-07-26 13:52 jhz033 阅读(394) 评论(0) 推荐(0)
摘要:Ant Trip Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description Ant Country consist of N towns.There are 阅读全文
posted @ 2016-11-29 19:13 jhz033 阅读(239) 评论(0) 推荐(0)
摘要:Play on Words Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7791 Accepted Submission(s): 2676 阅读全文
posted @ 2016-11-29 17:52 jhz033 阅读(221) 评论(0) 推荐(0)
摘要:欧拉回路 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description 欧拉回路是指不令笔离开纸面,可画过图中每条边仅一次,且可以回到起点的一条回路。现给定一个 阅读全文
posted @ 2016-11-27 19:07 jhz033 阅读(193) 评论(0) 推荐(0)
摘要:Bob’s Race Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description Bob wants to hold a race to encourage 阅读全文
posted @ 2016-11-23 22:58 jhz033 阅读(172) 评论(0) 推荐(0)
摘要:Computer Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description A school bought the first computer some 阅读全文
posted @ 2016-11-23 22:48 jhz033 阅读(175) 评论(0) 推荐(0)
摘要:E. Anton and Tree time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Anton is growing a tre 阅读全文
posted @ 2016-11-20 16:02 jhz033 阅读(148) 评论(0) 推荐(0)
摘要:#1050 : 树中的最长路 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 上回说到,小Ho得到了一棵二叉树玩具,这个玩具是由小球和木棍连接起来的,而在拆拼它的过程中,小Ho发现他不仅仅可以拼凑成一棵二叉树!还可以拼凑成一棵多叉树——好吧,其实就是更为平常的树而已。 阅读全文
posted @ 2016-11-20 15:26 jhz033 阅读(248) 评论(0) 推荐(0)
摘要:C. Statues time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output In this task Anna and Maria p 阅读全文
posted @ 2016-05-03 16:28 jhz033 阅读(188) 评论(0) 推荐(0)
摘要:D. Subway D. Subway A subway scheme, classic for all Berland cities is represented by a set of n stations connected by n passages, each of which conne 阅读全文
posted @ 2016-04-28 21:27 jhz033 阅读(211) 评论(0) 推荐(0)