码迷,mamicode.com
首页 >  
搜索关键字:c. kyoya and colored    ( 385个结果
poj2513Colored Sticks(欧拉通路+字典树+并查集)
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 endpoin...
分类:其他好文   时间:2014-07-26 15:24:43    阅读次数:294
UVa 10051 Tower of Cubes(DP 最长序列)
Problem A: Tower of Cubes  In this problem you are given N colorful cubes each having a distinct weight. Each face of a cube is colored with one color. Your job is to build a tower using th...
分类:其他好文   时间:2014-07-23 17:07:51    阅读次数:251
xtu数据结构 G. Count the Colors
G. Count the ColorsTime Limit: 2000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainPainting some colored segments on a line, ...
分类:其他好文   时间:2014-07-22 00:23:34    阅读次数:220
[LeetCode OJ] Sort Colors
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:其他好文   时间:2014-07-20 21:36:16    阅读次数:186
UVA 10733 - The Colored Cubes(Ploya)
UVA 10733 - The Colored Cubes 题目链接 题意:一个立方体,n种颜色,问能涂成多少不同立方体 思路:Ploya求解,正方体对应24种不同旋转一一计算出循环个数即可,和 UVA 10601 - Cubes这题类似 代码: #include #include unsigned long long n; int main() { w...
分类:其他好文   时间:2014-07-19 14:07:23    阅读次数:189
[ACM] POJ 2513 Colored Sticks (Trie树,欧拉通路,并查集)
Colored Sticks Time Limit: 5000MS   Memory Limit: 128000K Total Submissions: 29736   Accepted: 7843 Description You are given a bunch of wooden sticks. Each endpoint of...
分类:其他好文   时间:2014-07-19 08:08:34    阅读次数:210
ZOJ 1610 Count the Colors
线段树:延伸标记+暴力更新 记得刚学线段树的时候做这题WA了一版。。。。。现在分分钟搞定。。。。 Count the Colors Time Limit: 2 Seconds      Memory Limit: 65536 KB Painting some colored segments on a line, some previously painted segm...
分类:其他好文   时间:2014-07-18 23:07:26    阅读次数:330
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-07-16 17:18:44    阅读次数:207
B广搜深搜
/* B - 广搜/深搜 基础 Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u Submit Status Description There is a rectangular room, covered with square tiles. Each tile is colored ei...
分类:其他好文   时间:2014-07-13 14:08:05    阅读次数:237
HDU1312——Red and Black
Red and BlackProblem DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on...
分类:其他好文   时间:2014-07-13 13:10:07    阅读次数:220
385条   上一页 1 ... 34 35 36 37 38 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!