所谓“螺旋方阵”,是指对任意给定的N,将1到N*N的数字从左上角第1个格子开始,按顺时针螺旋方向顺序填入NxN的方阵里。本题要求构造这样的螺旋方阵。输入格式:输入在一行中给出一个正整数N(<10)。输出格式:输出NxN的螺旋方阵。每行N个数字,每个数字占3位。输入样例:5输出样例:1 2 3 ...
分类:
其他好文 时间:
2014-08-12 00:00:23
阅读次数:
251
1074. Reversing Linked List (25)
时间限制
300 ms
内存限制
32000 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
Given a constant K and a singly li...
分类:
其他好文 时间:
2014-08-11 21:30:32
阅读次数:
222
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 //利用map键的唯一性 11 //...
分类:
其他好文 时间:
2014-08-11 20:25:32
阅读次数:
177
参考http://www.cnblogs.com/deerchao/archive/2006/08/24/zhengzhe30fengzhongjiaocheng.htmlpackagesunfa.lx;importjava.util.Arrays;importjava.util.regex.Pat...
分类:
编程语言 时间:
2014-08-11 14:42:02
阅读次数:
278
1073. Scientific Notation (20)
时间限制
100 ms
内存限制
32000 kB
代码长度限制
16000 B
判题程序
Standard
作者
HOU, Qiming
Scientific notation is the way tha...
分类:
其他好文 时间:
2014-08-11 00:25:31
阅读次数:
285
1078. Hashing (25)
时间限制
100 ms
内存限制
32000 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
The task of this problem is simple: insert a seq...
分类:
其他好文 时间:
2014-08-11 00:24:21
阅读次数:
206
1082. Read Number in Chinese (25)
时间限制
400 ms
内存限制
32000 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
Given an integer with no more than ...
分类:
其他好文 时间:
2014-08-11 00:23:11
阅读次数:
256
安装 下载 git OSX 版 下载 git Windows 版 下载 git Linux 版 创建新仓库 创建新文件夹,打开,然后执行 git init 以创建新的 git 仓库。 检出仓库 执行如下命令以创建一个本地仓库的克隆版本: git clone /pat...
分类:
其他好文 时间:
2014-08-08 13:02:46
阅读次数:
294
#!/bin/sh
LOG=/var/log/mysql-backup.log
# mysql db info
USER_ROOT=XXXXXX
USER_PWD=XXXXXXX
# mysql data stored dir
TODAY=`date +%F`
STOREDIR=/mnt/tf-card/mysql-back/$TODAY
mkdir $STOREDIR
echo "*** PAT...
分类:
数据库 时间:
2014-08-08 12:56:05
阅读次数:
228