码迷,mamicode.com
首页 >  
搜索关键字:is == type    ( 51964个结果
Python查看MQ队列深度
分享一段代码,很简单但是也很实用。 1 #!/usr/bin/python 2 #-*- coding:gb18030 -*- 3 ''' 4 Usage: mq.py [Qmgr] 5 *get the queues' curdepth which type is local,...
分类:编程语言   时间:2014-07-12 08:40:14    阅读次数:502
jquery实现页面按条件显示图片
function lazyload(option){ var settings={ defObj:null, defHeight:0 }; settings=$.extend(settings,option||{}); var defHeight=settings.defHeight,defObj=...
分类:Web程序   时间:2014-07-12 08:26:02    阅读次数:244
Python查看MQ队列深度
分享一段代码,很简单但是也很实用。 1 #!/usr/bin/python 2 #-*- coding:gb18030 -*- 3 ''' 4 Usage: mq.py [Qmgr] 5 *get the queues' curdepth which type is local,...
分类:编程语言   时间:2014-07-12 08:05:13    阅读次数:404
Python查看MQ队列深度
分享一段代码,很简单但是也很实用。 1 #!/usr/bin/python 2 #-*- coding:gb18030 -*- 3 ''' 4 Usage: mq.py [Qmgr] 5 *get the queues' curdepth which type is local,...
分类:编程语言   时间:2014-07-12 08:03:54    阅读次数:373
HDU4565 So Easy! 矩阵快速幂外加数学
easy 个屁啊,一点都不easy,题目就是要求公式的值,但是要求公式在最后的取模前的值向上取整,再取模,无脑的先试了快速幂 double  fmod来做,结果发现是有问题的,这题要做肯定得凑整数,凑整  题目给 a+√b 那么加上a-√b就可以了,可是这样加上后面怎么处理还得减去,想了半年也想不出来, 原来用了负数的共轭思想,还有就是题目给的b的范围 是 ((a-1)*(a-1),a*a),所...
分类:其他好文   时间:2014-07-11 00:27:45    阅读次数:204
POJ-2201-Cartesian Tree(笛卡尔树)
Description Let us consider a special type of a binary search tree, called a cartesian tree. Recall that a binary search tree is a rooted ordered binary tree, such that for its every node x the fol...
分类:其他好文   时间:2014-07-11 00:12:52    阅读次数:379
关于DrawIndexedPrimitive函数的调用
函数的原型如下所示: HRESULT DrawIndexedPrimitive( [in] D3DPRIMITIVETYPE Type, [in] INT BaseVertexIndex, [in] UINT MinIndex, [in] UINT NumVertices, [in] UINT StartIndex, [in] UINT PrimitiveCount );...
分类:Windows程序   时间:2014-07-10 22:20:01    阅读次数:490
swift菜鸟入门视频教程-10-属性
本人自己录制的swift菜鸟入门,欢迎大家拍砖,有什么问题可以在这里留言。 主要内容: 存储属性(Stored Properties) 计算属性(Computed Properties) 属性观察器(Property Observers) 全局变量和局部变量(Global and Local Variables) 类型属性(Type Properties) 视频地址: 百度网盘:http://p...
分类:其他好文   时间:2014-07-10 20:45:28    阅读次数:293
FZU - 1759 Super A^B mod C 降幂公式
知道降幂公式这题就很好办了 B>=Phi(c)的时候可以降幂然后快速幂计算,否则就直接快速幂计算。 这里的大数对小数取模直接利用取模性质按位取就行了。 //A^B %C=A^( B%phi(C)+phi(C) ) %C #include #include #include #include #include #include using namespace std; typedef _...
分类:其他好文   时间:2014-07-10 19:58:21    阅读次数:217
poj 3735 Training little cats 矩阵
假设n=3 构造矩阵【1,0,0,0】 对于g 1操作,构造矩阵(0行i列++) 1 1 0 0 0 1 0 0 0 0 1 0 0 0 0 1 对于e 1操作,构造矩阵 (i整列清空) 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 对于s 1 2操作,构造矩阵 (i,j整列交换) 1 0 0 0 0 0 1 0 0 1 0 0 0 0...
分类:其他好文   时间:2014-07-10 19:37:51    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!