题意:给定n个立方体,让你重新涂尽量少的面,使得所有立方体都相同。 析:暴力求出每一种姿态,然后枚举每一种立方体的姿态,求出最少值。 代码如下: ...
分类:
其他好文 时间:
2017-02-17 00:07:55
阅读次数:
169
创建项目 项目目录 Data Sources:用于存放数据源 Data Sources Views:用于存放数据源视图 Cubes Dimensions Mining Structures Roles Assemblies Miscellaneous 定义数据源 定义数据源视图 窗体说明 1. Di... ...
分类:
其他好文 时间:
2016-12-08 18:34:48
阅读次数:
245
http://blog.csdn.net/anya/article/details/6407280/ 用SQL语句,删除掉重复项只保留一条 在几千条记录里,存在着些相同的记录,如何能用SQL语句,删除掉重复的呢1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断 select ...
分类:
数据库 时间:
2016-12-06 09:41:26
阅读次数:
330
题目链接:http://vjudge.net/problem/HDU-1334 暴力枚举,我不知道我的优化是不是暴力里面最简单的... ...
分类:
其他好文 时间:
2016-12-06 02:06:38
阅读次数:
155
Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille ...
分类:
其他好文 时间:
2016-11-01 19:14:22
阅读次数:
213
People in Cubeland use cubic coins. Not only the unit of currency iscalled a cube but also the coins are shaped like cubes and their valuesare cubes. ...
分类:
其他好文 时间:
2016-10-19 19:19:31
阅读次数:
124
Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille ...
分类:
其他好文 时间:
2016-08-30 17:28:39
阅读次数:
109
We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors. ...
分类:
其他好文 时间:
2016-08-18 00:57:30
阅读次数:
163
Description There are several colored cubes. All of them are of the same size but they may be colored differently. Each face of these cubes has a sing ...
分类:
其他好文 时间:
2016-08-09 16:13:46
阅读次数:
136
题目链接:http://codeforces.com/problemset/problem/180/E 给你n个数,每个数代表一种颜色,给你1到m的m种颜色。最多可以删k个数,问你最长连续相同颜色的序列的长度是多少。 将相同颜色的下标存到对应颜色的容器中,比如ans[a[i]].push_back( ...
分类:
其他好文 时间:
2016-08-01 00:07:25
阅读次数:
168