Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3,You should return the followin...
分类:
其他好文 时间:
2014-11-17 06:53:48
阅读次数:
152
Implement int sqrt(int x).Compute and return the square root of x.Analysis:Using binary search to find the solution. However, what need to be consider...
分类:
其他好文 时间:
2014-11-17 01:40:04
阅读次数:
205
Red and Black
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 23095
Accepted: 12467
Description
There is a rectangular room, covered with square tiles. Eac...
分类:
其他好文 时间:
2014-11-16 10:46:08
阅读次数:
107
SudokuTime Limit:2000MSMemory Limit:65536KTotal Submissions:14105Accepted:6964Special JudgeDescriptionSudoku is a very simple task. A square table wit...
分类:
其他好文 时间:
2014-11-16 10:30:39
阅读次数:
140
方法1:使用linux iconv将utf-8日志转为gbk编码的文件,然后gbk环境下统计数据。
utf8(){
LOG_FILE="/lcims/crontab_shell/outfile/lan_wlan_wo/SocketMain.log141114_lan1"
LOG_FILE_TMP="/lcims/crontab_shell/outfile/lan_wlan_wo/...
分类:
系统相关 时间:
2014-11-15 18:55:14
阅读次数:
236
Packets
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 44505
Accepted: 15032
Description
A factory produces products packed in square packets of the sam...
分类:
其他好文 时间:
2014-11-15 00:13:01
阅读次数:
195
Walking on the Safe Side
Square City is a very easy place for people to walk around. The two-way streets run North-South or East-West dividing the city into regular blocks. Most street int...
分类:
其他好文 时间:
2014-11-14 19:47:01
阅读次数:
270
IIS7.0站点/虚拟目录中访问共享目的:实现一个2008serve的IIS的虚拟目录(通过网络路径(UNC)的形式,共享在另外一个2008服务器上)准备工作1.运行组策略编辑器(gpedit.msc)找到本地安全策略-本地策略-安全选项子项中的:网络安全:LAN管理器身份验证级别,默认是“没有定义...
分类:
其他好文 时间:
2014-11-13 10:32:48
阅读次数:
153
题目:Implementint sqrt(int x).Compute and return the square root ofx思路:1、利用二分法查找 2、Discuss里面贴了一些利用移位做的方法;BTW: C++11定义的Sqrt函数 from double sqrt (doubl...
分类:
其他好文 时间:
2014-11-13 01:48:07
阅读次数:
119
由于在货币组合的题目中使用了母函数的方法,就顺便搜索一些资料和练习,加深自己的理解。杭电ACM课件中简要介绍了母函数的方法,并给出了几道相关的题目。1. HDU1398 Square Coins使用指定的货币来组合一个给定的目标值,问一共有多少种可能。这道题和我们以前的货币组合题目大同小异,代码如下...
分类:
其他好文 时间:
2014-11-13 00:26:36
阅读次数:
358