Appleman has a tree withnvertices. Some of the vertices (at least one) are colored black and other vertices are colored white.Consider a set consistin...
分类:
移动开发 时间:
2015-08-28 19:31:43
阅读次数:
252
Description
You are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possible to align the sticks in a straight line such that the colors of the endpoints...
分类:
其他好文 时间:
2015-08-28 17:46:34
阅读次数:
153
Description
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles...
分类:
其他好文 时间:
2015-08-25 16:42:51
阅读次数:
224
题目链接:poj 2513 Colored Sticks题目大意:有N个木棍,每根木棍两端被涂上颜色。如今给定每一个木棍两端的颜色。不同木棍之间拼接须要颜色同样的端才干够。问最后是否能将N个木棍拼接在一起。解题思路:欧拉通路+并查集+字典树。欧拉通路,每一个节点的统计度,度为奇数的点不能超过2个。并...
分类:
其他好文 时间:
2015-08-21 23:03:31
阅读次数:
216
Count the Colors
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones.
Your...
分类:
其他好文 时间:
2015-08-20 01:31:58
阅读次数:
142
Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones.Your task is counting the segmen...
分类:
其他好文 时间:
2015-08-19 23:17:32
阅读次数:
164
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1610
Count the Colors
Time Limit: 2 Seconds Memory Limit: 65536 KB
Painting some colored segments on a line, some previousl...
分类:
其他好文 时间:
2015-08-18 12:05:58
阅读次数:
126
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1610
Description
Painting some colored segments on a line, some previously painted segments may be covered by some the subsequen...
分类:
其他好文 时间:
2015-08-17 12:10:53
阅读次数:
151
Description
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent til...
分类:
其他好文 时间:
2015-08-15 20:07:33
阅读次数:
111
原题如下面,这意味着无序排列(由0,1,2组成)。一号通。组织成若干阵列0-几个1-几个2这样的序列。Given an array with n objects colored red, white or blue, sort them so that objects of the same col...
分类:
编程语言 时间:
2015-08-13 19:38:50
阅读次数:
124