模拟汉诺塔的移动过程,CC答案的面向对象的太烦,写个以前学的经典的。public class Solution { public void move(int n, char a, char b, char c) { if (n == 1) { System....
分类:
其他好文 时间:
2014-08-20 01:19:25
阅读次数:
184
原文:一个简单的带序列号输入的安装包首先建立一个Installscript Project
在Installation Designer中,找到Behavior and Logic -> Install Script, 在Setup.rul中找到Before Move Data -> OnFirst...
分类:
其他好文 时间:
2014-08-19 18:53:05
阅读次数:
185
//创建表空间
Create tablespace examination//创建表空间examination
datafile ‘c:\Oracle\zhangwei\examination.dbf‘//与表空间关联的文件存放位置(要预先手动建好文件夹)
size 100m//文件初始大小,千万不要...
分类:
数据库 时间:
2014-08-19 01:04:13
阅读次数:
302
网格路径问题,中文翻译如下:
从 22的格子的左上角开始,只允许向右和向下移动,一共有六种路径可以抵达右下角
那么在2020的路径中一共有多少条这样的路径?
原题如下:
Starting in the top left corner of a 22 grid,
and only being able to move to the right and down...
分类:
编程语言 时间:
2014-08-18 16:33:02
阅读次数:
232
还原Oracle数据库时出现ORA-19870和ORA-19573错误,如:RMAN> restore database;Starting restore at 11-DEC-12 using channel ORA_DISK_1channel ORA_DISK_1: starting datafi...
分类:
其他好文 时间:
2014-08-17 19:51:02
阅读次数:
342
对于像UVA 11987 Almost Union-Find这样的题目,要求把一个元素从一个集合中剥离的情况,我们只需要新建一个节点然后………. 还是看代码吧: inline void move(int x,int y) // 把x从y集合中剥离{ int fx = find(id[x]),fy =...
分类:
其他好文 时间:
2014-08-16 14:58:50
阅读次数:
231
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-08-15 23:47:19
阅读次数:
302
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diag...
分类:
其他好文 时间:
2014-08-15 09:32:37
阅读次数:
200
pair 是 一种模版类型。每个pair 可以存储两个值。这两种值无限制,可以是tuple,vector ,string,struct等等。
首先来看一下pair的函数
初始化,复制等相关操作如下:
default (1)
constexpr pair();
copy / move (2)
template pair (const pair...
分类:
编程语言 时间:
2014-08-15 00:02:36
阅读次数:
241
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-08-14 23:26:46
阅读次数:
219