码迷,mamicode.com
首页 > 其他好文
DOM-判断元素节点类型
http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object/27112297#27112297判断节点类型: aaa ...
分类:其他好文   时间:2015-08-01 17:04:57    阅读次数:113
委托,协议(代理模式)
1.delegate传值,传事件。1、避免子类化带来的过多的子类以及子类与父类的耦合2、通过委托传递消息机制实现分层解耦eg.代理#import @class Children; @protocol ChildrenDelegate @required- (void)Eat:(Children *....
分类:其他好文   时间:2015-08-01 17:03:18    阅读次数:105
HUAS Summer Trainning #3 C
DescriptionA ring is composed of n (even number) circles as shown in diagram. Put natural numbersinto each circle separately, and the sum of numbers i...
分类:其他好文   时间:2015-08-01 17:02:18    阅读次数:101
HDU 3666 THE MATRIX PROBLEM (差分约束,最短路)
题意:给一个n*m矩阵,每个格子上有一个数字a[i][j],给定L和U,问:是否有这样两个序列{a1...an}和{b1...bn},满足 L 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #def...
分类:其他好文   时间:2015-08-01 17:02:18    阅读次数:101
查找文献资料的几个有效的检索网址(实时更新)
方法1:喜乐搜http://www.xilesou.com/Google谷歌打不开就来喜乐搜(由谷歌香港google.com.hk , google.com实时提供数据)。方法2: 3googlehttp://www.3google.cn/即,在谷歌前面添加个3,就可以搜索了(注:本站专为大陆用户开...
分类:其他好文   时间:2015-08-01 17:01:35    阅读次数:1460
POJ 3134Power Calculus
DescriptionStarting withx and repeatedly multiplying byx, we can computex31 with thirty multiplications: x2 = xxx, x3 = x2xx, x4 = x3xx, ... , x31 = x...
分类:其他好文   时间:2015-08-01 17:02:49    阅读次数:110
【LeetCode 69】Sqrt(x)
Implementint sqrt(int x).Compute and return the square root ofx.思路: 突然发现,二分真TM的是万能的。还有牛顿迭代法,数学的东西,头疼不想看了。还有传说中的“魔数”法,比math库效率都高,试了下RE - -。C++: 1 clas....
分类:其他好文   时间:2015-08-01 17:01:10    阅读次数:128
poj 1840 Eqs 【解五元方程+分治+枚举打表+二分查找所有key 】
EqsTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 13955Accepted: 6851DescriptionConsider equations having the following form: a1x13+ a2x23+ ...
分类:其他好文   时间:2015-08-01 17:00:39    阅读次数:117
在SD卡上创建/删除文件夹 使用DDMS透视图管理SD卡
在SD卡上创建和删除文件夹 基本步骤: (1):在控制台中输入adb shell命令,进入shell控制台。 (2):在shell控制台中输入cd sdcard 命令,进入SD卡中。 (3):在shell控制台中输入ls -al 命令,查看sd卡中包含的全部文件和文件夹。 (4...
分类:其他好文   时间:2015-08-01 16:59:00    阅读次数:181
POJ 2231 Moo Volume
脑洞题。开个数组记录一下每个点的左边部分的和右边部分的和。只要知道第一个点和最后一个点的情况,其余的点的情况可以再o(n)的效率下推导出来。#include#include#include#includeusing namespace std;const int maxn=10000;long lo...
分类:其他好文   时间:2015-08-01 17:00:17    阅读次数:100
HDU3714——三分——Error Curves
Josephina is a clever girl and addicted to Machine Learning recently. Shepays much attention to a method called Linear Discriminant Analysis, whichhas...
分类:其他好文   时间:2015-08-01 17:00:35    阅读次数:118
HDU4932——二分——Miaomiao's Geometry
There are N point on X-axis . Miaomiao would like to cover them ALL by using segments with same length.There are 2 limits:1.A point is convered if the...
分类:其他好文   时间:2015-08-01 16:57:56    阅读次数:102
margin外边距问题
1 、上下边距会叠加!DOCTYPE html>2、父级包含子级的时候,子级的margin-top会传递给父级,可以使用父级的padding替代自己的margin。3、margin左右margin-lefta:uto 偏右margin-right:auto 偏左margin:auto 水平居中...
分类:其他好文   时间:2015-08-01 17:00:03    阅读次数:174
POJ 3416 Crossing
树状数组+离线操作#include#include#include#includeusing namespace std;int N,M;int SUM1,SUM2,SUM3,SUM4;int C[500000+20];struct Point{ int x,y,PD,ans,id,BiX,B...
分类:其他好文   时间:2015-08-01 16:59:59    阅读次数:132
POJ2420——三分——A Star not a Tree?
Luke wants to upgrade his home computer network from 10mbs to 100mbs. His existing network uses 10base2 (coaxial) cables that allow you to connect any...
分类:其他好文   时间:2015-08-01 17:00:10    阅读次数:213
按值传递与按引用传递
讨论这个问题,我们首先应该明确一点: 什么是值传递?什么是引用传递? 值传递:传递过程中,将变量的值拷贝一个副本,用这个副本值来对新变量完成初始化; ????????????????传递结果:两个变量...
分类:其他好文   时间:2015-08-01 15:54:15    阅读次数:124
挖财首席架构师王福强:架构设计中的6大关键点
编者按:要开发出用户满意的软件并不是件容易的事,软件架构师必须全面把握各种各样的需求、权衡需求之间有可能的矛盾之处,分门别类地将不同需求一一满足。在UPYUN?Open?Talk?第二期“移动时代互联网金融架构...
分类:其他好文   时间:2015-08-01 15:56:05    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!