题目链接:
http://poj.org/problem?id=2513
Colored Sticks
Time Limit: 5000MS
Memory Limit: 128000K
Total Submissions: 30955
Accepted: 8159
Description
You a...
分类:
其他好文 时间:
2014-10-03 13:05:24
阅读次数:
251
http://poj.org/problem?id=2513DescriptionYou are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possibl...
分类:
其他好文 时间:
2014-09-22 22:49:43
阅读次数:
285
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:
其他好文 时间:
2014-09-19 13:43:05
阅读次数:
194
[leetcode]Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the integers 0, 1, and 2 to represent the color red, white, and...
分类:
其他好文 时间:
2014-09-18 13:21:43
阅读次数:
164
poj2513:http://poj.org/problem?id=2513题意:就是求一个欧拉回路。题解:本题是判断欧拉通路是否存在,但是如果是用map的话就会超时,这里采用了trie树,有发现trie树的一种用法。神奇 啊 1 #include 2 #include 3 #include ...
分类:
其他好文 时间:
2014-09-17 10:09:52
阅读次数:
219
传送门Colored SticksTime Limit: 5000MSMemory Limit: 128000KDescriptionYou are given a bunch of wooden sticks. Each endpoint of each stick is colored with...
分类:
其他好文 时间:
2014-09-14 20:34:57
阅读次数:
202
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers ...
分类:
编程语言 时间:
2014-09-11 19:26:52
阅读次数:
196
All 6 sides of a cube are to becoated with paint. Each side is is coated uniformly with one color. When a selectionof n different colors of paint is available, how many different cubes can youmake?
...
分类:
其他好文 时间:
2014-09-06 20:03:53
阅读次数:
254
Description
Problem B
Cubes
You are given 12 rods of equal length. Each of them is colored in certain color. Your task is to determine in how many different ways one can construct a cube...
分类:
其他好文 时间:
2014-09-06 17:27:53
阅读次数:
253
LeetCode: Sort ColorsGiven an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colo...
分类:
其他好文 时间:
2014-09-04 22:10:20
阅读次数:
173