第一题:题目大意:50*50的格子里玩贪吃蛇。给出N步扭头的操作,判断贪吃蛇会在第几步挂掉。(蛇初始向东)解题过程:1.一开始的方法是:为了加快速度,只保存头和尾的坐标,然后保存尾巴的方向,每次move先头运动,然后尾巴按照之前的方向运动直到需要改变方向(继续按之前的方向运动将撞到墙壁或者走到一个m...
分类:
其他好文 时间:
2014-10-02 00:52:12
阅读次数:
388
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 following triangle
[
[2],
[3,4],
[...
分类:
其他好文 时间:
2014-10-01 19:09:51
阅读次数:
144
create tablespace TBS_DYS datafile 'D:/Oracle_12c/app/dingyingsi/oradata/dingyingsi/TBS_DYS.ba' size 1024m reuse autoextend on next 100m ma...
分类:
数据库 时间:
2014-10-01 18:18:01
阅读次数:
291
一、使用ALTERTABLESPACE来移动数据文件移动数据文件在调整表空间大小时有可能会用到,使用的是ALTERTABLESPACE命令。但是要注意的是,在进行此项操作之前,首先应将tablespace设为offline,第二,需要确定目标数据文件是存在的。======查询当前表空间信息=======SQL>select..
分类:
移动开发 时间:
2014-10-01 09:27:04
阅读次数:
376
一、只读表空间只读的表空间只能进行select操作,设定只读表空间的命令为:ALTERTABLESPACEuserdataREADONLY;设定只读表空间会触发checkpoint,将缓存中的数据写入datafile;但是尽管设定了只读属性,依然可以对这个表空间进行drop操作(比如droptable),因为drop操作并没有改..
分类:
数据库 时间:
2014-10-01 08:54:11
阅读次数:
339
In linux, you can use the ncurses library to use the terminal as a text buffer: move the cursor around, and write text. It can also draw windows and o...
分类:
其他好文 时间:
2014-09-30 18:43:59
阅读次数:
154
1登录:--运行->sqlplus->js45st/password@jsmam2表空间:--创建表空间,指定数据文件(建议放在ORACLE目录下面),初始化100M 自增加50Msql> create tablespace TBS_JSNET datafile 'd:\oracledb\Jetse...
分类:
数据库 时间:
2014-09-30 11:02:11
阅读次数:
278
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-09-29 22:48:21
阅读次数:
163
在写php文件上传程序时有时会出现这样的警告:Upload: 屏幕截图2014-09-28_160214.png
Type: image/png
Size: 66.84765625 Kb
Temp file: D:\Users\Aven\AppData\Local\Temp\php742F.tmp
Warning: move_uploaded_file() [function.move-uplo...
分类:
其他好文 时间:
2014-09-28 19:08:35
阅读次数:
218
将数据文件读入SAS ——DATA Step / PROC IMPORT
1.将SAS文件读入SAS——
data sasuser.saslin;
set "F:\sas1.sas7bdat";
run;
proc contents data=sasuser.saslin;
run;
2...
分类:
其他好文 时间:
2014-09-28 11:23:01
阅读次数:
278