码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
malloc_readonly
malloc_readonly.h #ifndef?_MALLOC_READONLY_H_ #define?_MALLOC_READONLY_H_ const?void?*?malloc_readonly(const?void?*?copy_from,?unsigned?size); #endif malloc_readonly.c #include?"malloc...
分类:其他好文   时间:2015-03-19 16:43:47    阅读次数:102
Bitmap 多语言实现及应用
有一个文本文件,有上亿行数据,每行数据是 unsigned int。现在需要将其中可能重复的数只保留一个,同时和另外一个或多个这样的文件进行排重(即和它们做差集)。要求尽可能快的筛选出来。 开始实现比较简单粗暴,将数据直接通过 LOAD DATA INFILE 导入 MySQL 表中,然后多表之间做 LEFT JOIN。数据不是特别大,比如几千万,且就要排重的文件不多时,比如一个,速度还...
分类:编程语言   时间:2015-03-19 16:27:02    阅读次数:242
[leetcode 191]Number of 1 Bits
1 题目Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bi...
分类:其他好文   时间:2015-03-19 16:01:38    阅读次数:112
Number of 1 Bits (求32位二进制数中1的)
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 integer ’11' has binary representation 00000000000000000000000000001011, so the function should return...
分类:其他好文   时间:2015-03-18 18:06:47    阅读次数:92
des加密算法
#include #include #include #include unsigned char C[17][28],D[17][28],K[17][48];unsigned char pc_1_c[28]={ 57,49,41,33,25,17,9 ,1,58,50,42,34,26,18 ,1...
分类:编程语言   时间:2015-03-18 15:23:32    阅读次数:210
位处理的低级筛法
不得不说位操作是件很神奇的东西//低级筛法#include#include#include#include#includeusing namespace std;int _count(unsigned int a){ int sum=0; for(unsigned int x=a;x;x...
分类:其他好文   时间:2015-03-18 13:55:54    阅读次数:154
SQL常用语句
CREATE TABLE `member` ( `uid` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` char(255) NOT NULL, `pass` char(255) NOT NULL, `token` char(255) NOT...
分类:数据库   时间:2015-03-18 10:25:58    阅读次数:165
Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-03-17 21:45:00    阅读次数:103
【leetcode】Reverse Bits(middle)
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-03-17 19:27:15    阅读次数:111
消灭星星的数组高效率算法(c++代码,控制台程序)
#include using namespace std; #define ROW 12 #define COL 10 class Star { public: enum Stat_star { willRemoved = -2, hasRemoved, normal }; Star() { for (unsigned i = 0; i < ROW; i++)...
分类:编程语言   时间:2015-03-17 14:12:55    阅读次数:616
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!