html代码: 1 2 3 4 5 6 删除 7 8 9 10 11 12 删除13 14 15 16 17 18 删除19 20 21 方法一:var trList = $("#history_income_list").children("tr") for (var i...
分类:
Web程序 时间:
2014-09-26 02:57:18
阅读次数:
271
window.onload = function() { $("a[_for]").mouseover(function() { $(this).parents().children("a[_for]").removeClass("thiscla...
分类:
其他好文 时间:
2014-09-25 15:47:29
阅读次数:
294
output
standard output
On Children's Day, the child got a toy from Delayyy as a present. However, the child is so naughty that he can't wait to destroy the toy.
The toy consists of n parts and
...
分类:
其他好文 时间:
2014-09-23 04:21:23
阅读次数:
220
http://acm.hdu.edu.cn/game/entry/problem/show.php?chapterid=3§ionid=1&problemid=10 1 #include 2 #include 3 #include 4 #define maxn 300000 5 usi...
分类:
其他好文 时间:
2014-09-21 22:04:01
阅读次数:
303
There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following req...
分类:
其他好文 时间:
2014-09-20 14:54:38
阅读次数:
173
Who Gets the Most Candies?
Time Limit: 5000MS
Memory Limit: 131072K
Total Submissions: 10234
Accepted: 3177
Case Time Limit: 2000MS
Description
N children are si...
分类:
其他好文 时间:
2014-09-19 15:40:15
阅读次数:
189
http://poj.org/problem?id=3083DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the ...
分类:
其他好文 时间:
2014-09-18 13:17:13
阅读次数:
228
题意:有n个人,每一个人可以是男孩也可以是女孩,要求每个女孩不能单独一个,也就是一个女孩的左右紧挨的位置至少要有一个女孩。问这样的队列有几个。
分析:设f(n)是n的排列的数目,这时候来一个人:
一:如果是男孩,那么f(n ) = f(n-1)
二:如果是女孩,如果前n-2是合法的,那么f(n) = f(n-2);如果前n-2不合法的,那么n-2队列的末尾两个同学肯定是男+女,那么再加上后来...
分类:
其他好文 时间:
2014-09-18 11:33:33
阅读次数:
176
一、获取DOM节点//找祖宗parent()parents()closest() //找后代children();find();//找兄弟next()/nextAll()prev()/prevAll()siblings()二、元素节点操作$(html) //创建DOMappend()/append....
分类:
Web程序 时间:
2014-09-18 02:00:03
阅读次数:
173
Domain:public class Department { private Long id; private Set users = new HashSet(); private Department parent; private Set children = new...
分类:
编程语言 时间:
2014-09-16 00:03:49
阅读次数:
450