码迷,mamicode.com
首页 >  
搜索关键字:c. kyoya and colored    ( 385个结果
[欧拉回路] poj 2513 Colored Sticks
题目链接: 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
POJ2513:Colored Sticks(字典树+欧拉路径+并查集)
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
Leetcode: Sort Colors
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
Sort Colors
[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
Colored Sticks
poj2513:http://poj.org/problem?id=2513题意:就是求一个欧拉回路。题解:本题是判断欧拉通路是否存在,但是如果是用map的话就会超时,这里采用了trie树,有发现trie树的一种用法。神奇 啊 1 #include 2 #include 3 #include ...
分类:其他好文   时间:2014-09-17 10:09:52    阅读次数:219
POJ2513 Colored Sticks (并查集+trie)
传送门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
【LeetCode】【Python】Sort Colors
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
UVA - 10733 The Colored Cubes (置换)
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
UVA - 10601 Cubes (组合+置换)
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 Colors
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
385条   上一页 1 ... 30 31 32 33 34 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!