方法一: 要加单元 PsAPIprocedure TForm1.tmr1Timer(Sender: TObject);begin edt1.Text:= format('memory use: %d KB', [GetProcessMemUse(GetCurrentProcessId)]);//方法...
分类:
其他好文 时间:
2015-04-13 16:10:11
阅读次数:
128
从4月21日起,我们将扩展我们的移动友好算法作为排名机制。这将会影响所有语系的移动搜索,这将会标志性的影响我们的搜索结果。(Starting April 21, we will be expanding our use of mobile-friendliness as a ranking signal. This change will affect mobile searches in all languages worldwide and will have a significant impact ...
分类:
移动开发 时间:
2015-04-13 14:40:15
阅读次数:
219
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(...
分类:
其他好文 时间:
2015-04-13 14:32:59
阅读次数:
108
1、创建数据库create database 数据库名;2、创建表create table 表名;3、显示所有数据库show databases;4、显示所有表show tables;5、选择数据库use 数据库名;6、创建字段create table 表名(字段1 类型,字段2 类型,字段3 类型...
分类:
数据库 时间:
2015-04-13 14:22:39
阅读次数:
141
1 use test1 2 select address_district,COUNT(address_district) as total from hr_personal_test group by address_district with rollup; 3 create table te....
分类:
数据库 时间:
2015-04-13 14:16:52
阅读次数:
169
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. You m...
分类:
其他好文 时间:
2015-04-13 12:58:22
阅读次数:
77
题意:
给一个n*m的图。
'@'代表你的位置,'.'代表空地,'*'代表墙,'$'代表钻石。
在每一秒钟你有四种选择。
1、站着不动。
2、光标往左移动一格。
3、光标往右移动一格。
4、点击光标让自己按光标的方向移动一格。
然后题目还给了一个k,代表每k秒光标整体循环右移一格。
现在问你拿到钻石的最少步数。
思路:
本弱开了一个四维数组判重use[x][y][f][l] ...
分类:
其他好文 时间:
2015-04-13 12:56:05
阅读次数:
148
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(...
分类:
其他好文 时间:
2015-04-13 12:20:33
阅读次数:
101
STL智能指针使用方法auto_ptr pi(new int(1024));定义智能指针类(使用计数)实现代码:class RealPtr {
friend class AutoPtr;
int *ip;
size_t use;
RealPtr(int *p) : ip(p), use(1) {}
~RealPtr() { delete ip; }...
分类:
其他好文 时间:
2015-04-13 09:41:23
阅读次数:
194