二阶魔方,只有0,1
问最少多少步可以转成每个面都为0,或1
BFS即可,对应好旋转时候的关系,因为顺时针转三次和逆时针转1次的效果一样,所以只要6种旋转方式即可,判重可用map省空间,或者直接判省时间
#include "stdio.h"
#include "string.h"
#include "map"
#include "queue"
using namespace std;...
分类:
其他好文 时间:
2015-04-14 12:56:50
阅读次数:
126
10377: squee_spoon and his Cube III
Time Limit: 2 Sec Memory Limit: 128 MB
Submit: 70 Solved: 22
[Submit][Status][Web
Board]
Description
As we all know, pupil squee_spoon plays Rubik'...
分类:
其他好文 时间:
2015-04-14 08:37:38
阅读次数:
137
uva 11137 Ingenuous CubrencyPeople in Cubeland use cubic coins. Not only the unit of currency is called a cube but also the coins are shaped like cubes and their values are cubes. Coins with values of...
分类:
其他好文 时间:
2015-04-13 23:04:26
阅读次数:
155
Cube painting
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
We have a machine for painting cubes. It is supplied w...
分类:
其他好文 时间:
2015-04-10 09:39:29
阅读次数:
159
题目大意给出一个N×N×NN \times N \times N的矩阵,矩阵上的每一个方块可以涂上两种颜色,相邻的两个方块如果涂上了不同的颜色,就会产生一点能量。现在已知了一些方块的颜色,问最多可以产生多少点能量。思路假设所有相邻的方块之间全部都产生能量,且不考虑已经上好色的方块,之后减去不合法的就行了。
一般来说这种相邻的方块之间会产生一些什么的一般都是把所有点染色,一种颜色的与S相连,另一种...
分类:
其他好文 时间:
2015-04-07 17:51:25
阅读次数:
141
Source data, target data, data warehouse, data mart, reports, ETL - Extract Transform Load, etl logic - incremental or full , integration services, re...
分类:
其他好文 时间:
2015-04-03 19:22:00
阅读次数:
150
1. 在Pinout 选项中,所有的系统用到的引脚都要配置好,其中包括 两个OSC,Jtag/SWD, BOOT0/1,这样就可以把所有未使用的引脚设置为Analog,否则会下载不了程序。2. 对于已经把JTAG配置为其他作用,而无法烧写程序的,把boot0改成1 然后按reset 然后仿真器就好用...
分类:
其他好文 时间:
2015-04-01 01:49:08
阅读次数:
279
Roll The Cube
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 502 Accepted Submission(s): 181
Problem Description
This is a simp...
分类:
其他好文 时间:
2015-03-31 22:30:24
阅读次数:
192
创建一个地形
创建一个Cube,再给它复制一个
添加一个光
再创建一个圆Sphere
要对对象进行阴影烘焙,要保证地面和物体都是静止不动的
选择Plane、Cube、Sphere ->Inspectorstatic
Window->lightmapping->Bake->Bake Scene
发现asset下多了一个文件夹,物体阴影变得清晰且没有毛边
拖动物体,阴影...
分类:
其他好文 时间:
2015-03-31 20:13:12
阅读次数:
202
Let’s imagine that you’re playing the following simple computer game. The screen displays n lined-up cubes. Each cube is painted one of m colors. You are allowed to delete not more than k cubes (that d...
分类:
其他好文 时间:
2015-03-31 09:16:05
阅读次数:
141