数据传输以“位”为单位,一个位代表0或1(二进制),每8个位(bit)组成一个字节(Byte),即8bit = 1B。数据存储以10进制表示,数据传输是二进制表示。1KB = 1024B字节是指一小组相邻的二进制数码。通常是8位作为一个字节。在计算机中,一串数码作为一个整体来处理或运算的,称为一个计...
分类:
其他好文 时间:
2014-07-22 08:01:37
阅读次数:
171
C. Ultra-QuickSortTime Limit: 7000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainSubmitStatusIn this problem, you have to an...
分类:
其他好文 时间:
2014-07-22 00:37:34
阅读次数:
296
HighwaysTime Limit: 1000 MS Memory Limit: 65536 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discuss]DescriptionT...
分类:
其他好文 时间:
2014-07-22 00:34:35
阅读次数:
258
B. Get Many Persimmon TreesTime Limit: 1000msMemory Limit: 30000KB64-bit integer IO format:%lld Java class name:MainSubmitStatusSeiji Hayashi had been...
分类:
其他好文 时间:
2014-07-22 00:30:33
阅读次数:
296
G. Count the ColorsTime Limit: 2000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainPainting some colored segments on a line, ...
分类:
其他好文 时间:
2014-07-22 00:23:34
阅读次数:
220
D. NecklaceTime Limit: 5000msMemory Limit: 32768KB64-bit integer IO format:%I64d Java class name:MainMery has a beautiful necklace. The necklace is ma...
分类:
其他好文 时间:
2014-07-22 00:08:37
阅读次数:
236
bool flock ( int handle, int operation [, int &wouldblock] );flock() 操作的 handle 必须是一个已经打开的文件指针。operation 可以是以下值之一:要取得共享锁定(读取程序),将 operation 设为 LOCK_SH...
分类:
Web程序 时间:
2014-07-22 00:07:34
阅读次数:
278
A. 最短路Time Limit: 1000msMemory Limit: 32768KB64-bit integer IO format:%I64d Java class name:Main在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从...
分类:
其他好文 时间:
2014-07-22 00:06:34
阅读次数:
194
http://acm.hdu.edu.cn/showproblem.php?pid=3397
Sequence operation
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5801 Accepted Subm...
分类:
其他好文 时间:
2014-07-21 11:45:44
阅读次数:
244
题解:首先,这道题可以用位运算来表示每一行的状态,同八皇后的搜索方法,然后对于限制条件不相互攻击,则只需将新加入的一行左右移动与上一行相&,若是0则互不攻击,方案可行。对于每种方案,则用递推来统计,将前一排所有可以的情况全部加上即可。bit数组记录每个数字二进制位中1的个数,方便计算。if(chec...
分类:
其他好文 时间:
2014-07-21 09:35:58
阅读次数:
184