转自: http://blog.leanote.com/post/totziens/%E8%8E%AB%E6%AF%94%E4%B9%8C%E6%96%AF%E5%8F%8D%E6%BC%94%E4%B8%8E%E6%9D%9C%E6%95%99%E7%AD%9B 1. 求$\sum\limits_ ...
分类:
其他好文 时间:
2017-04-07 21:17:14
阅读次数:
280
My First Blog - How to choose a handy Markdown writing toolMARKDOWNTOOLSWhen I decided to learn and use Markdown as my daily note-taking method, I rea... ...
分类:
其他好文 时间:
2017-04-07 16:52:35
阅读次数:
184
看这位大佬的题解就可以了。 http://blog.csdn.net/Fuxey/article/details/50573495 代码: 1 #include<iostream> 2 #include<cstdio> 3 #include<algorithm> 4 #include<cstring ...
分类:
其他好文 时间:
2017-04-07 15:47:47
阅读次数:
169
1 含义 扩展运算符( spread )是三个点(...)。它好比 rest 参数的逆运算,将一个数组转为用逗号分隔的参数序列。 [javascript] view plain copy console.log(...[1, 2, 3]) // 1 2 3 console.log(1, ...[2, ...
分类:
其他好文 时间:
2017-04-07 00:41:40
阅读次数:
201
抽签 X星球要派出一个5人组成的观察团前往W星。其中:A国最多可以派出4人。B国最多可以派出2人。C国最多可以派出2人。.... 那么最终派往W星的观察团会有多少种国别的不同组合呢? 下面的程序解决了这个问题。数组a[] 中既是每个国家可以派出的最多的名额。程序执行结果为:DEFFFCEFFFCDF ...
分类:
其他好文 时间:
2017-04-06 22:21:39
阅读次数:
265
1 #include <iostream> 2 #include <cstring> 3 #include <algorithm> 4 #include <cmath> 5 #include <cstdio> 6 #define _xx ios_base::sync_with_stdio(0);ci ...
分类:
其他好文 时间:
2017-04-06 21:03:24
阅读次数:
175
传教士与野人过河问题: 任意时刻,左岸、右岸、船上如果传教士人数少于野人人数,传教士就会被野人吃掉。当然野人会划船。传教士人数为0也是可以的。 启发函数 f=g+h. g当前结点所在解空间树的深度。h=m+c-2*b. m,c分别是当前状态下左岸传教士和野人的数目。b=1表示当前船在左岸停靠。b=0 ...
分类:
编程语言 时间:
2017-04-06 19:31:39
阅读次数:
682
Ba Gua Zhen Problem Description During the Three-Kingdom period, there was a general named Xun Lu who belonged to Kingdom Wu. Once his troop were chas ...
分类:
其他好文 时间:
2017-04-06 19:25:03
阅读次数:
248
像checkbox,radio和select这样的元素,选中属性对应“checked”和“selected”,这些也属于固有属性,因此需要使用prop方法去操作才能获得正确的结果。 如果上面使用attr方法,则会出现: 对于HTML元素本身就带有的固有属性,在处理时,使用prop方法。对于HTML元 ...
分类:
其他好文 时间:
2017-04-06 17:47:33
阅读次数:
177
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the pr ...
分类:
其他好文 时间:
2017-04-06 17:45:13
阅读次数:
192