码迷,mamicode.com
首页 >  
搜索关键字:bit operation    ( 13261个结果
图论trainning-part-1 B. A Walk Through the Forest
B. A Walk Through the ForestTime Limit: 1000msMemory Limit: 32768KB64-bit integer IO format:%I64d Java class name:MainJimmy experiences a lot of stres...
分类:其他好文   时间:2014-07-22 22:46:54    阅读次数:348
图论trainning-part-1 G. Stockbroker Grapevine
G. Stockbroker GrapevineTime Limit: 1000msMemory Limit: 10000KB64-bit integer IO format:%lld Java class name:MainStockbrokers are known to overreact t...
分类:其他好文   时间:2014-07-22 22:41:52    阅读次数:277
【设计模式】工厂方法模式
简单工厂模式的最大优点在于工厂类中包含了必要的逻辑判断,根据客户端的选择条件动态实例化相关的类,对于客户端来说,去除了与具体产品的依赖。例如在简单工厂模式中出现的工厂函数: Operation* FactoryFunction(double left, double right, char op) { switch (op) { case '+': ret...
分类:其他好文   时间:2014-07-22 22:38:56    阅读次数:283
【leetcode刷题笔记】Edit Distance
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:其他好文   时间:2014-07-22 22:37:33    阅读次数:191
图论trainning-part-1 E. Invitation Cards
E. Invitation CardsTime Limit: 8000msMemory Limit: 262144KB64-bit integer IO format:%lld Java class name:MainIn the age of television, not many people...
分类:其他好文   时间:2014-07-22 22:37:14    阅读次数:278
poj2524-Ubiquitous Religions
C - Ubiquitous ReligionsTime Limit:5000 MSMemory Limit:65536 KB64-bit integer IO format:%I64d , %I64uJava class name:MainDescriptionThere are so many ...
分类:其他好文   时间:2014-07-22 00:03:34    阅读次数:211
BNU 12846 LCM Extreme 最小公倍数之和(线性欧拉筛选+递推)
LCM ExtremeTime Limit:3000msMemory Limit:131072KBThis problem will be judged on UVALive. Original ID:596464-bit integer IO format:%lld Java class name...
分类:其他好文   时间:2014-07-22 00:00:37    阅读次数:437
Poj1611The Suspects
A - The SuspectsTime Limit:1000 MSMemory Limit:20000 KB64-bit integer IO format:%I64d , %I64uJava class name:MainDescriptionSevere acute respiratory s...
分类:其他好文   时间:2014-07-21 23:29:40    阅读次数:268
The current deployment target does not support automated __weak references
下载运行一个demo时出现“The current deployment target does not support automated __weak references”这个问题,找了下方法: 4.2以前版本的XCode都不支持ARC。 对操作系统也有要求:Mac OS X v10.6 或 v10.7 (64-bit applications), iOS4或iOS5。注意:其中...
分类:其他好文   时间:2014-07-21 23:29:20    阅读次数:321
block实现代码分析
们先看看blockTest2,它是由 结构体impl, 结构体Desc, 构造方法__exampleBlock_block_impl_2() 组成展开后是 *isa 指向该实例对象(代码里是NSConcreteStackBlock,其实应该是NSConcreteGlobalBlock) Flags 用于按bit位表示一些block的附加信息 reserved 保留变量 *FuncPtr 函数指针,指向具体的block实现的函数调用地址(代码里是__exampleBlock_block_func_2)...
分类:其他好文   时间:2014-07-21 22:12:48    阅读次数:336
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!