1 /* 2 题意:给出立方体的每个顶点的坐标(是由源坐标三个数某几个数被交换之后得到的!), 3 问是否可以还原出一个立方体的坐标,注意这一句话: 4 The numbers in the i-th output line must be a permutation o...
分类:
其他好文 时间:
2014-09-11 16:56:02
阅读次数:
157
(学习笔记,希望能帮助到有需要的人。)
在自定义的EditorWindow中定义2个变量,分别代表需要渲染的Cubemap 和 视点对象(通常是Camera对象)
private Cubemap cubemap;
private GameObject obj;
在OnGUI 函数中
this.cubemap = (Cubemap) EditorGUILayou...
分类:
其他好文 时间:
2014-09-09 23:08:19
阅读次数:
603
题目链接:Codeforces 464B Restore Cube
题目大意:给定8个点坐标,对于每个点来说,可以随意交换x,y,z坐标的数值。问说8个点是否可以组成立方体。
解题思路:直接暴力枚举即可,保证一个点的坐标不变,枚举量为67,将上一层判断。
#include
#include
#include
#include
using namespace std;
typ...
分类:
其他好文 时间:
2014-09-09 13:14:08
阅读次数:
150
题意:
给出一个2X2X2的魔方,再给一个限定的步骤长度,不超过该长度最多能能使几个面拼成功。
纯粹模拟题,搞清楚几个面的变换关系,并化简步骤,三种旋转方式,两种旋转方向。bfs,dfs都可以。
#include
#include
#define maxn 300000
int twist[3][3][4]=
{
{{1,7,17,21}, {3,13,19,23}, {9,8,1...
分类:
其他好文 时间:
2014-09-07 13:36:55
阅读次数:
193
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
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
题目来源:http://poj.org/problem?id=1988
Cube Stacking
Time Limit: 2000MS
Memory Limit: 30000K
Total Submissions: 19173
Accepted: 6693
Case Time Limit: 1000MS
...
分类:
其他好文 时间:
2014-09-05 13:01:34
阅读次数:
195
今天在SOA应用数据库上运用DBMS_REDEFITION包进行在线非分区表转换分区表操作时,本想DROP掉建的临时表cube_scope_temp不小心后面忘记加"temp"直接执行了,我等意识到这个问题的时候已经晚了,因为项目建设等遗留问题,数据库是非归档模式,也没有做备份,因为怕影响业务,一时...
分类:
数据库 时间:
2014-09-04 16:30:39
阅读次数:
264
其实,我暂时还是用不到集成测试的,不过,还是跟着教程继续写下去。
第一步,创建场景,我的场景就是 一个cube自由落体,落在地形上。
开始测试
选菜单栏 Unity Test Tools->Integration
点加号 新建出来 一个New Test 在它之下 创建一个GameObject
创建脚本TestScript 绑定在 GameObject上
using UnityE...
分类:
其他好文 时间:
2014-09-04 15:03:49
阅读次数:
264