http://acm.nyist.net/JudgeOnline/problem.php?pid=708状态转移方程的思路:对于一个数N,可以是N
- 1的状态+1 得到,另外,也可以是(n / 2) * (1 + 1)得到,同理对于任意的奇数p,都有如果n可以整除p,都有f(n / p) + f(...
分类:
其他好文 时间:
2014-04-30 21:26:26
阅读次数:
519
JavaScript 中一共有 5 种基本类型,分别是
String、Number、Boolean、Null 和 Undefined 。前 3 种都比较好理解,后面两种就稍微复杂一点。 Null 类型只有一个值,就是
null ; Undefined 类型也只有一个值,即 undefined 。 n...
分类:
其他好文 时间:
2014-04-29 11:43:47
阅读次数:
484
DateTime.Now.ToString("{0:yyyy-MM-dd HH:mm:ss}");
//返回string类型string.Format("{0:yyyy-MM-dd HH:mm:ss}",DateTime.Now);
分类:
其他好文 时间:
2014-04-29 11:42:47
阅读次数:
408
String[] strs = {"string--01", "string--02",
"string--03", "string--04"};List strsList =
Arrays.asList(strs);//以下语句输出:[string--01, string--02, string-...
分类:
其他好文 时间:
2014-04-29 11:33:45
阅读次数:
345
String field;@Testpublic void test01() { String a =
"aaa"; String b = "aaa"; String c = new String("aaa"); String d = new
String("aaa"); System.out.pr...
分类:
编程语言 时间:
2014-04-29 11:28:46
阅读次数:
391
创建FileWriter对象时的细节
有可能会产生编译时异常IOException和运行时异常FileNotFoundException 使用构造方法FileWriter(String
fileName)或FileWriter(File file)创建FileWriter对象时 指定文件不存在 --...
分类:
其他好文 时间:
2014-04-29 11:27:46
阅读次数:
646
/// /// 取文本左边内容 /// /// 文本 /// 标识符 /// 左边内容 public
static string GetLeft(string str, string s) ...
分类:
其他好文 时间:
2014-04-29 11:26:47
阅读次数:
362
http://hi.baidu.com/mingyuejingque/item/78e71aff57ae9ec5a835a2e4感谢mingyuejingquest
= avformat_new_stream( m_oc, NULL); if (!st) { fprintf(stderr, ...
分类:
其他好文 时间:
2014-04-29 10:41:46
阅读次数:
441
大多数计算机语言,有且仅有一个表示"无"的值,比如,C语言的NULL,Java语言的null,Python语言的None,Ruby语言的nil。有点奇怪的是,JavaScript语言居然有两个表示"无"的值:undefined和null。这是为什么?一、相似性在JavaScript中,将一个变量赋值...
分类:
其他好文 时间:
2014-04-29 10:32:46
阅读次数:
404
1 public static String makeMD5(String password) { 2
String result = null; 3 4 MessageDigest messageDigest; 5 try { 6 ...
分类:
其他好文 时间:
2014-04-29 10:16:46
阅读次数:
348