1箱起批2箱起批3箱起批var v_wholesale_one = $(“:radio[name='wholesale_one'][checked]“).val();
分类:
Web程序 时间:
2014-07-31 16:43:26
阅读次数:
296
二叉树的前序遍历递归实现/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : v...
分类:
其他好文 时间:
2014-07-31 12:44:46
阅读次数:
188
二叉树的后序遍历递归实现/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : v...
分类:
其他好文 时间:
2014-07-31 12:30:16
阅读次数:
224
$(function(){$("input[type=checkbox]").click(function(){varna=$(this).attr("name");varnum=$(this).attr("num");vartruenum=$(this+"[name="+na+"][checked]").length;if(truenum>num){alert("本题最多只能选"+num+"个答案!");}//if($(".name").val()==""||$(".sfz")...
分类:
其他好文 时间:
2014-07-31 09:58:46
阅读次数:
232
题目地址:Building a Space Station题目大意: 在一个三维的空间里有若干个球体,求从走过所有球花费最少,题目要求两个球体接触就不需要建桥意为花费为0,实力给吃的n行, 其中包括 球的X,Y,Z的坐标,r为球的半径。这里就清晰了,意思就是求无向图最小生成树,val就为两个求圆心....
分类:
其他好文 时间:
2014-07-30 23:40:45
阅读次数:
299
function doSubmit() {
$(‘#T_form select‘).each(function(){
$(this).find(‘:selected‘).attr(‘selected‘, true);
});
$("#T_form :text").each(function(){
$(this).attr(‘value‘, $(this).val());
})...
分类:
移动开发 时间:
2014-07-30 21:02:44
阅读次数:
209
//代码为自己编写,可能有问题,欢迎大家留言指正!
#include
#include
using namespace std;
typedef struct dnode
{
int val;
dnode *prior;
dnode *next;
}dnode;
dnode * create();
void traverse(dnode *pHead);
bool insert(dn...
分类:
其他好文 时间:
2014-07-30 20:56:44
阅读次数:
210
array_count_values() 函数用于统计数组中所有值出现的次数。本函数返回一个数组,其元素的键名是原数组的值,键值是该值在原数组中出现的次数。例子输出:Array ( [Cat] => 1 [Dog] => 2 [Horse] => 1 )
分类:
其他好文 时间:
2014-07-30 20:37:04
阅读次数:
299
#include
#include
using namespace std;
typedef struct node
{
int val;
node *next;
}node;
node * create_list();
void traverse_list(node *pHead);
int get_len_list(node *pHead);
bool delete_list(no...
分类:
其他好文 时间:
2014-07-30 17:43:54
阅读次数:
237
d[i]表示在[0,i]这个区间内一共选了d[i]个数对于每个为[ai,bi]的区间,你必须在这个区间上至少取ci个不同的整数,用d[i]如何表示?d[ bi ]-d[ ai-1 ] >= ciEdge:(ai-1 -> bi) val = ci另外:0#include #include #incl...
分类:
其他好文 时间:
2014-07-30 11:27:43
阅读次数:
249