第13个位置第5个Bit :13>num[4] =>1 第四个bit 13-num[4]=5 :50 ,3-1 第三个Bit 5>num[2](3) 5-num[2]=2 ...#includeint num[45];void init(){ num[0]=1; num[1]=2; ...
分类:
其他好文 时间:
2014-07-29 11:50:46
阅读次数:
169
1.EPEL源CentOS 6.x 32-bit (x86/i386):rpm -Uvhhttp://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmCentOS 6.x 64-bit (x64):rpm -...
分类:
其他好文 时间:
2014-07-29 11:48:46
阅读次数:
218
cat /proc/meminfo cat /proc/cpuinfo ipcs -a ipcs -m ipcs -s ipcs -q mkdir -p name当父目录不存在是创建它infocmp vt100 echo$TERM xterm konsole getconf LONG_BIT arc...
分类:
系统相关 时间:
2014-07-29 11:01:26
阅读次数:
451
D. 病毒侵袭Time Limit: 1000msMemory Limit: 32768KB64-bit integer IO format:%I64d Java class name:Main当太阳的光辉逐渐被月亮遮蔽,世界失去了光明,大地迎来最黑暗的时刻。。。。在这样的时刻,人们却异常兴奋——我...
分类:
其他好文 时间:
2014-07-29 11:01:16
阅读次数:
347
C/C++中, 浮点数,float以及 double 在内存中是怎样存储的?假如,我有32-bit 8bit 8bit 8bit 0 0 0 0 0 1 1 1 1 对于整形int,我们可以很快得出,这是 int...
分类:
其他好文 时间:
2014-07-27 23:31:49
阅读次数:
382
状态压缩 动态规划DP[111.....1]=1表示所有鱼都在的几率为10代表已经挂了的,1代表没挂;#include "stdio.h"#define max 10;i--){ int bit=bitcount(i); if(bit==1)continue; double p=2*dp[i]...
分类:
其他好文 时间:
2014-07-27 23:19:49
阅读次数:
316
Restoring IPv6DescriptionAn IPv6-address is a 128-bit number. For convenience, this number is recorded in blocks of 16 bits in hexadecimal record, the...
分类:
其他好文 时间:
2014-07-27 22:53:39
阅读次数:
301
一、概述本文是根据整合网上资料与相关博文总结出来的关于【C/C++左移右移运算符 】的知识。二、正文(1)结合图示篇,更加简单明了。移位运算包含“逻辑移位”(logical shift)和“算术移位”(arithmetic shift)。逻辑移位:移出去的位丢弃,空缺位(vacant bit)用 0...
分类:
编程语言 时间:
2014-07-27 22:40:19
阅读次数:
297
3C. Substring FrequencyTime Limit: 1000msMemory Limit: 32768KB64-bit integer IO format:%lld Java class name:MainA string is a finite sequence of symbo...
分类:
其他好文 时间:
2014-07-27 22:33:49
阅读次数:
319
A. Scout YYF ITime Limit: 1000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainYYF is a couragous scout. Now he is on a danger...
分类:
其他好文 时间:
2014-07-27 22:04:39
阅读次数:
316