码迷,mamicode.com
首页 >  
搜索关键字:bit operation    ( 13261个结果
BNUOJ 26224 Covered Walkway
Covered WalkwayTime Limit: 10000msMemory Limit: 131072KBThis problem will be judged onHDU. Original ID:425864-bit integer IO format:%I64d Java class n...
分类:其他好文   时间:2014-08-15 14:14:28    阅读次数:201
内存分配与Segmentation fault
为了方便使用,我做了如下结构体的嵌套使用:struct operation{ int num; char name[100]; char owner[100]; char msg[100];};struct collect{ int num; char name[100]; char owner[1...
分类:其他好文   时间:2014-08-15 12:03:28    阅读次数:308
CF#52 C Circular RMQ (线段树区间更新)
Description You are given circular array a0,?a1,?...,?an?-?1. There are two types of operations with it: inc(lf,?rg,?v) — this operation increases each element on the segment [lf,?rg] (inclu...
分类:其他好文   时间:2014-08-15 00:01:56    阅读次数:327
一个文件中有40亿个整数,每个整数为四个字节,内存为1GB,写出一个算法:求出这个文件里的整数里不包含的一个整数
4个字节表示的整数,总共只有2^32约等于4G个可能。为了简单起见,可以假设都是无符号整数。分配500MB内存,每一bit代表一个整数,刚好可以表示完4个字节的整数,初始值为0。基本思想每读入一个数,就把它对应的bit位置为1,处理完40G个数后,对500M的内存遍历,找出一个bit为0的位,输出对...
分类:其他好文   时间:2014-08-14 23:27:46    阅读次数:187
HDU - 4952 Number Transformation
Problem Description Teacher Mai has an integer x. He does the following operations k times. In the i-th operation, x becomes the least integer no less than x, which is the multiple of i. He wan...
分类:其他好文   时间:2014-08-14 20:39:59    阅读次数:256
H264格式具体说明
一 H.264句法1.1元素分层结构H.264编码器输出的Bit流中,每一个Bit都隶属于某个句法元素。句法元素被组织成有层次的结构,分别描写叙述各个一 H.264句法1.1元素分层结构H.264编码器输出的Bit流中,每一个Bit都隶属于某个句法元素。句法元素被组织成有层次的结构,分别描写叙述各个...
分类:其他好文   时间:2014-08-14 20:20:59    阅读次数:211
an implement of sizeof guaranteeing bit alignment
#define _INTSIZEOF(n) ( (sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1) )The above macro simply aligns the size ofnto the nearest greater-or-equa.....
分类:其他好文   时间:2014-08-14 20:11:19    阅读次数:282
CC150 1.1 字符串查唯一bit manipulation详解
public boolean isUniqueChars2(String str) { int checker = 0; for (int i = 0; i 0) { return false; } else ...
分类:其他好文   时间:2014-08-14 19:24:39    阅读次数:250
C数据类型之基本类型
先来张C数据类型的图片,如下图基本数据类型的长度,数据存储是以"字节"(Byte)为单位,数据传输是以"位"(bit)为单位,一位就代表一个0或1(二进制),一个字节(Byte)占8位(bit).#import<Foundation/Foundation.h> intmain(intargc,constchar*argv[]) { @autoreleasepo..
分类:其他好文   时间:2014-08-14 17:09:59    阅读次数:204
samba共享和访问权限设置
1、简介配置samba共享服务器,只允许10.0.1.1这个ip访问samba服务器的共享功能,同时设置共享文件夹中上传的文件不能被修改和删除,需要用到linux的文件扩展属性2、关闭防火墙vim/etc/selinux/config"SELINUX=disabled"或者"setenforce0"3、配置iptables策略iptables-AINPUT-pt..
分类:其他好文   时间:2014-08-14 16:59:29    阅读次数:585
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!