Best Time to Buy and Sell Stock I II III
分类:
其他好文 时间:
2014-06-29 12:08:25
阅读次数:
275
搬寝室
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 16027 Accepted Submission(s): 5447
Problem Description
搬寝室是很累的,xhd深有体会.时间追述2006年...
分类:
其他好文 时间:
2014-06-29 07:34:59
阅读次数:
142
rt,直接猜1
First Digit
Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge
Benford's Law, also called the First-Digit Law, refers to the frequency distribution of digits i...
分类:
其他好文 时间:
2014-06-20 13:04:39
阅读次数:
277
龟兔赛跑
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 10728 Accepted Submission(s): 4038
Problem Description
据说在很久很久以前,可怜的兔子经历了人生中最大的...
分类:
其他好文 时间:
2014-06-20 11:52:10
阅读次数:
243
获取Exif信息
代表的是文件的头信息;
步骤:
步骤一:
// 获取指定的文件的头信息对象
ExifInterface exif = new ExifInterface("/sdcard/x.jpg");
步骤二:
获取指定的头信息:
// 获取指定的信息
// 获取拍摄时间
String time =exif.getAttribute(ExifInterface.TAG_D...
分类:
移动开发 时间:
2014-06-20 10:19:51
阅读次数:
335
单件模式(singleton pattern) 详解本文地址: http://blog.csdn.net/caroline_wendy/article/details/28595349 单件模式(singleton pattern) : 确保一个类只有一个实例, 并提供一个全局访问点.单价模式包括3个部分: 私有构造器, 静态变量, 静态方法.具体方法:1. 标准的单例模式:/**
* @time 2014.6.5
*/
package sin...
分类:
其他好文 时间:
2014-06-20 10:02:42
阅读次数:
328
并查集,
删除节点操作,可以用新建节点代替
维护每个点到跟节点的距离
Gears
Time Limit: 2 Seconds Memory Limit: 65536 KB
Bob has N (1 ≤ N ≤ 2*105) gears (numbered from 1 to N). Each gear can rotate clockwise or co...
分类:
其他好文 时间:
2014-06-07 11:33:37
阅读次数:
227
Windows平台下代码运行时间测量方法:一:毫秒级 GetTickCount()#include
二:秒级 Time()#include 三:微秒级 QueryPerformanceCounter(&end)#include
Linux平台下时间测量方法:一:秒级 C语言库函数time()二:微秒...
enc_ctx->profile =FF_PROFILE_H264_MAIN
; enc_ctx->time_base.den = 24; enc_ctx->time_base.num =
1; enc_ctx->gop_size = 8; /* emit one intra frame ...
分类:
其他好文 时间:
2014-06-07 09:45:45
阅读次数:
486
随机生成[0,n)中不重复的m个数。 1 class Random { 2 public: 3
Random(int n, int m):n(n), m(m) {} 4 void generate() { 5 srand(time(NULL)); 6
...
分类:
其他好文 时间:
2014-06-07 08:42:38
阅读次数:
178