B. Mike and Children time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Mike and Childre ...
分类:
其他好文 时间:
2019-03-07 20:51:04
阅读次数:
181
题目链接:http://codeforces.com/problemset/problem/1121/B 题意 给n个数 最多的对数 其中每一对(i,j)的ai+aj都相等(不知道怎么解释。。。。 判断的话 大概是4重循环 因为每次都选4个数嘛 两两相加判等 不过会TLE 而且并不知道哪些值用了哪些 ...
分类:
其他好文 时间:
2019-03-07 00:45:27
阅读次数:
179
each() children() index() 一、jQuery实例遍历方法each() jQuery实例上的each()方法规定要运行的函数,并且给函数传入两个参数:index,element。这个方法本身应用非常的简单,所以要来点不简单的东西,请看以下代码: 思路一的解决方案循环了两次,从上 ...
分类:
Web程序 时间:
2019-03-06 16:23:20
阅读次数:
205
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2019-03-05 11:15:23
阅读次数:
140
20. Dog,Man's Best Friend 狗,人类最好的朋友①The dogs has always been considered man's best friend.Always noted for being particularly faithful in watching ove... ...
分类:
其他好文 时间:
2019-03-02 13:37:46
阅读次数:
423
第一种:鼠标经过时table表格中的颜色根据奇偶行改变不同的颜色 第二种:直接用css发生改变,使用了伪类选择器nth-child ...
分类:
Web程序 时间:
2019-02-28 16:47:29
阅读次数:
298
题目如下: Given a binary tree, return the vertical order traversal of its nodes values. For each node at position (X, Y), its left and right children resp ...
分类:
其他好文 时间:
2019-02-26 10:34:18
阅读次数:
104
生活中要有常识意识,行走在外要有交通安全意识,竞技游戏中要有参战和逃命意识。软件开发作为一项极易踩坑而且犯错成本很高的工作,一定要有强烈的检查意识。我在工作中发现,检查意识能带来很多明显的好处: 检查代码可以加快开发完成时间。大型的C++工程中代码编译速度很慢,短则几十秒,长则十几分钟。因此写完代码 ...
分类:
其他好文 时间:
2019-02-25 00:53:10
阅读次数:
190
js获取节点 父: parentNode 获取已知节点的父节点。 子: childNodes; 得到全部子节点 children 得到全部子节点 firstChild 获得第一个子节点 lastChild 获得最后一个子节点 兄弟:previousSibling 获取已知节点的前一个节点 nextS... ...
分类:
Web程序 时间:
2019-02-23 21:50:24
阅读次数:
459