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
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
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
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
题目链接
题意:一个立方体,n种颜色,问能涂成多少不同立方体
思路:Ploya求解,正方体对应24种不同旋转一一计算出循环个数即可,和
UVA 10601 - Cubes这题类似
代码:
#include
#include
unsigned long long n;
int main() {
w...
分类:
其他好文 时间:
2014-07-19 14:07:23
阅读次数:
189
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
线段树:延伸标记+暴力更新
记得刚学线段树的时候做这题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
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 - 广搜/深搜 基础
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
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