redis 127.0.0.1:6380> time ,显示服务器时间, 时间戳(秒), 微秒数1) "1375270361"2) "504511"redis127.0.0.1:6380> dbsize // 当前数据库的key的数量(integer)2redis127.0.0.1:6380> s....
分类:
其他好文 时间:
2015-04-01 23:14:28
阅读次数:
232
1554: SG ValueTime Limit:5 SecMemory Limit:256 MBSubmit:140Solved:35DescriptionThe SG value of a set (multiset) is the minimum positive integer that c...
分类:
其他好文 时间:
2015-04-01 23:14:14
阅读次数:
107
把所给的字符串按照规定转化成相应的数字。要考虑溢出的情况,含有非法字符的情况,数字前有空格的情况。但是还是比较简单的。public class Solution { public int atoi(String str) { StringBuilder s = ...
分类:
其他好文 时间:
2015-04-01 19:53:45
阅读次数:
102
LeetCode #String to Integer (atoi)#
自己写一个atoi. 其实之前都没怎么调用过这个库函数. 具体性能也不怎么知道.
自己写的时候感觉有个版本比题目要求还好,但是不能被接受, 于是就改改改
话说AC的感觉真爽...
我尽量把代码写的紧凑...
"""
Programmer : EOF
Date : 2...
分类:
其他好文 时间:
2015-04-01 15:26:17
阅读次数:
141
在测试同步的过程中,看到如下代码:public class MsLunch { private long c1 = 0; private long c2 = 0; private Object lock1 = new Object(); private Object lock...
分类:
编程语言 时间:
2015-04-01 12:37:34
阅读次数:
134
反转数字,考虑溢出的情况。直接返回零(好坑啊)。public class Solution { public int reverse(int x) { if(x == 0) return 0; StringBuilder sb = new St...
分类:
其他好文 时间:
2015-04-01 01:48:15
阅读次数:
131
题目:
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expression.Some examples:[“2”, “1”, “+”, “3”, “...
分类:
其他好文 时间:
2015-04-01 00:28:51
阅读次数:
140
Delphi 的指针分为 "类型指针" 和 "无类型指针" 两类.Delphi 中的类型, 常用的也得有几百个, 我们可以给每种类型定义相应的类型指针.其实 Delphi 已经为很多类型预定义了指针, 譬如数据类型:Integer 有对应的 PInteger;Char 有对应的 PChar;stri...
ShellExecute函数ShellExecute函数原型及參数含义例如以下: function ShellExecute(hWnd: HWND; Operation, FileName, Parameters,Directory: PChar; ShowCmd: Integer): HINST....
分类:
系统相关 时间:
2015-03-31 23:40:49
阅读次数:
244
Discrete Logging
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 4011
Accepted: 1849
Description
Given a prime P, 2 31, an integer B, 2
BL == N (mo...
分类:
其他好文 时间:
2015-03-31 20:05:28
阅读次数:
106