The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
编程语言 时间:
2015-05-20 01:56:53
阅读次数:
188
JMP Jump unconditionallySyntax JMP labelOperation PC + 2 × offset ?> PCDescription The 10-bit signed offset contained in the instruction LSBs ...
分类:
其他好文 时间:
2015-05-20 00:14:23
阅读次数:
138
题目:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total num...
分类:
编程语言 时间:
2015-05-19 12:08:38
阅读次数:
230
分析:dp[i][j][k]表示长度为i的串含j个相邻的1并且以k为结尾的种数。状态转移方程:dp[i][j][0]=dp[i-1][j][0]+dp[i-1][j][1];dp[i][j][1]=dp[i-1][j][0]+dp[i-1][j-1][1];边界dp[1][0][0]=dp[1][0][1]=1;。
#include
using namespace std;
int dp[10...
分类:
其他好文 时间:
2015-05-18 16:44:06
阅读次数:
148
题目描述
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the se...
分类:
其他好文 时间:
2015-05-18 09:12:13
阅读次数:
118
妈蛋真简单。。。离线版的可以乱搞。。。貌似是BZOJ的2683在线的话。。一开始想到了BIT套平衡树。。。空间复杂度$O(n * logm)$非常开心的MLE了。。。QAQ于是写KD树,空间复杂度$O(n)$,时间复杂度$O(msqrt(m))$,于是就过了QAQQQ看错题了非常开心。。。一开始读入...
分类:
其他好文 时间:
2015-05-17 23:17:32
阅读次数:
607
在数据库学习与试用当中会遇到一个概念“位图索引”,这是位图在索引检索中的一个应用案例。现在对位图的基本原来进行下学习。原理其实很简单,主要搞清楚一些基本概念。
先说一下基本的概念:bit,byte,word。
bit 位
byte 字节
word 字
字长是指字的长度
关系如下:
1字=2字节(1 word = 2 byte)
1字节=8位(1 byte =...
分类:
其他好文 时间:
2015-05-17 20:21:46
阅读次数:
118
1.首先要是没有打印的记录。2.其次是要按照时间,时间是要按照倒序排列。1 1 select Top 10 下载文件的URL from 表的名称 where 是否打印 = 0 and order by 上传时间 desc*是否打印,使用字段bit,0是没有打印,1是已经打印
分类:
数据库 时间:
2015-05-17 18:18:11
阅读次数:
129
链表由无数模块(struct)穿成一串组成,每个模块都有两个指针(双向链表),一个指向上一个模块,一个指向下一个模块,还有一些其他变量用来存储自己想要存储的内容。 嗯,话说作者前几天还想要写一个无限精确度的计算器呢,就想到用链表实现。 //这里每一位=一个模块 struct BIT { BIT* p...
分类:
其他好文 时间:
2015-05-17 02:03:52
阅读次数:
117
字节,是计算机信息技术用于计量存储容量的一种计量单位,也表示一些计算机编程语言中的数据类型和语言字符。数据存储是以10进制表示,数据传输是以2进制表示的,所以1Kb不等于1000B1kb =1024B, 1Mb =1024*1024B.其中1024=2的10次方。B与bit数据存储是以字节 byte...
分类:
其他好文 时间:
2015-05-16 16:19:59
阅读次数:
103