PowerShell中有Measure-Command命令用于测量进程运行时间,和Unix下time命令的作用相似。Measure-Command
{ start-process command "argument" -wait }比如,Measure-Command { start-process...
-1 NSString 转成NSDate NSString *time =
@"2014-05-18 09:24:40"; NSDateFormatter *dateFormatter = [[NSDateFormatter
alloc] init]; dateFormatter....
分类:
其他好文 时间:
2014-05-19 17:30:02
阅读次数:
167
从网络中加载图片主要要注意两个方面的问题:1.内存管理:图片占的内存很大,假如图片数量多,很容易让系统抛出out of memory的异常。
同时我们也要注意不同android版本中内存管理的区别。2.性能:图片的加载速度,和加载图片时不影响UI的流畅性尤其是在ViewPager,Gr...
分类:
移动开发 时间:
2014-05-19 11:51:27
阅读次数:
298
//
// get current time, yyyyMMddhhmmss
//
char* curtime( char *p, uint len )
{
if( NULL != p )
{
time_t tt;
time( &tt );
tm* ptm = localtime( &tt );
memset( p, 0, sizeof(char) * len );
spr...
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4542
小明系列故事——未知剩余系
Time Limit: 500/200 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 889 Accepted Submission...
分类:
其他好文 时间:
2014-05-18 18:43:04
阅读次数:
402
题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3769
Diablo III
Time Limit: 2 Seconds Memory Limit: 65536 KB
Diablo III is an action role-playing video game. A fe...
分类:
其他好文 时间:
2014-05-18 18:40:35
阅读次数:
345
题目如下:
Til the Cows Come Home
Time Limit: 1000MS Memory Limit: 65536K
Total Submissions: 27726 Accepted: 9353
Description
Bessie is out in the field and wants to get back to the ba...
分类:
其他好文 时间:
2014-05-18 13:50:11
阅读次数:
263
Clock
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4605 Accepted Submission(s): 1416
Problem Description
There is an analog c...
分类:
其他好文 时间:
2014-05-18 07:55:47
阅读次数:
284
B-number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2168 Accepted Submission(s): 1165
Problem Description
A wqb-number, or ...
分类:
其他好文 时间:
2014-05-18 03:32:19
阅读次数:
240
C - The Dole Queue
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu
Submit Status
Description
The Dole Queue
In a serious attempt to down...
分类:
其他好文 时间:
2014-05-18 03:10:48
阅读次数:
326