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
首先名词解释。ORM:对象关系映射(英语:Object Relational Mapping,简称ORM,或O/RM,或O/R mapping),是一种程序技术,用于实现面向对象编程语言里不同类型系统的数据之间的转换。从效果上说,它其实是创建了一个可在编程语言里使用的“虚拟对象数据库”。面向对象是从...
题目链接: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
详细讲解Bump Mapping中关于将高度图转化为法线贴图的过程。...
分类:
移动开发 时间:
2014-09-07 12:21:15
阅读次数:
294
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
1.什么是O-R Mapping(对象-关系映射)
常用O-R Mapping映射工具
Hibernate(全自动框架)
Ibatis(半自动框架/SQL)
Commons DbUti ls(只是对JDBC简单封装)
还有JPA等之类的,这个不是特别了解,到目前为止也就接触了Hibernate和DbUtils,Hiabernate给人的不用写SQl语句,直...
分类:
数据库 时间:
2014-09-06 18:43:54
阅读次数:
328
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-09-06 18:40:43
阅读次数:
224