码迷,mamicode.com
首页 >  
搜索关键字:bit    ( 10514个结果
android自定义一圆角ImageView-圆角图片
public class CircleImageView extends ImageView {       private static final ScaleType SCALE_TYPE = ScaleType.CENTER_CROP;       private static final Bitmap.Config BIT...
分类:移动开发   时间:2015-03-15 10:55:45    阅读次数:306
(简单) POJ 1502 MPI Maelstrom,Dijkstra。
Description BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hie...
分类:其他好文   时间:2015-03-15 00:34:49    阅读次数:262
POJ 2195 Going Home
Going HomeTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged on PKU. Original ID: 2195 64-bit integer IO format: %lld Ja...
分类:其他好文   时间:2015-03-14 22:54:47    阅读次数:158
POJ 2186 Popular Cows
Popular CowsTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged on PKU. Original ID: 2186 64-bit integer IO format: %lld ...
分类:其他好文   时间:2015-03-14 21:22:35    阅读次数:121
ZOJ 2532 Internship
InternshipTime Limit: 5000msMemory Limit: 32768KBThis problem will be judged on ZJU. Original ID: 2532 64-bit integer IO format: %lld Ja...
分类:其他好文   时间:2015-03-14 19:50:28    阅读次数:153
BZOJ-2337-XOR和路径
描述分析 转化为二进制按位来计算, 最后把每一位的加起来 f[i]表示i到n的期望路径长度, d[i]表示i的度 因为i的期望是由i走到的点状态转移得到的, 所以在计算概率时应该用i的度来算 如果i到j的边的权值的第 BIT 位是0, 任何数异或0都是它本身, 所以f[i] = f[j] / d[i] + … 如果i到j的边的权值的第 BIT 位是1, 异或一相当于取反. 所以f[i] = (1-f...
分类:其他好文   时间:2015-03-14 18:36:38    阅读次数:140
Socket编程实践(1) --TCP/IP简述
ISO的OSI    OSI(open system interconnection)开放系统互联模型是由ISO国际标准化组织定义的网络分层模型,共七层, 从下往上为:OSI七层参考模型物理层(Physical Layer)物理层定义了所有电子及物理设备的规范,为上层的传输提供了一个物理介质,本层中数据传输的单位为比特(bit/二进制位)。属于本层定义的规范有EIA/TIA RS-232、RJ-4...
分类:其他好文   时间:2015-03-14 12:30:23    阅读次数:163
bit操作 转
http://www.catonmat.net/blog/low-level-bit-hacks-you-absolutely-must-know/Bit Hack #6. Turn off the rightmost 1-bit.y = x & (x-1)Bit Hack #7. Isolate ...
分类:其他好文   时间:2015-03-14 12:22:59    阅读次数:209
Leetcode: Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit i...
分类:其他好文   时间:2015-03-14 06:14:08    阅读次数:165
LPC1768基本输入输出GPIO使用
LPC1788通用IO口的控制包含了一些基本的组件,比如设置推挽输出,开漏输出,上拉电阻等,我们今天来看看. 首先使用GPIO要打开GPIO的系统时钟 LPC_SC->PCONP |= (1>第五章(87页~92页).//IO口操作宏定义#define BITBAND(addr, bit...
分类:其他好文   时间:2015-03-14 00:58:37    阅读次数:341
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!