题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5375编码规则:tmp = XOR(gr[i],gr[i-1]);算是找规律的题目吧,考虑?前后字符和?数目的奇偶性就可以了,一个小trick就是当碰到需要减的时候是减问号区间内最小的那个,然后就是调试的...
分类:
其他好文 时间:
2015-08-12 13:02:40
阅读次数:
87
/************************************************/*格雷值与二进制转化公式,G[i] = B[i]^B[i-1],二进制前面补0dp[i][j]定义为当前是第i个格雷值,值是j的和*/* Author :powatr* Created ...
分类:
其他好文 时间:
2015-08-12 11:26:32
阅读次数:
113
hdu 5375 Gray codeProblem Description
The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only onebit (binary digit)....
分类:
其他好文 时间:
2015-08-11 23:35:32
阅读次数:
171
Gray code
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 185 Accepted Submission(s): 105
Problem Description
The reflected bina...
分类:
其他好文 时间:
2015-08-11 21:38:41
阅读次数:
121
HDU 5375 Gray code
#include
#include
#include
#include
#define maxn 200005
#define ll __int64
#define INF 0xfffffff
using namespace std;
ll ans[maxn][2];
char s[maxn];
int a[maxn];
int main(){
in...
分类:
其他好文 时间:
2015-08-11 18:50:01
阅读次数:
89
Gray code
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 65 Accepted Submission(s): 35
Problem Description
The reflected binary...
分类:
其他好文 时间:
2015-08-11 18:40:38
阅读次数:
109
鼠标点击input前: 鼠标点击input后:html部分: css部分:input{ width: 200px; height: 30px; margin: 10px; outline: none; border: 1px solid gray;}.active{ border: 1px s...
分类:
其他好文 时间:
2015-08-11 13:44:46
阅读次数:
125
直方图这个东西,是个好东西。所谓的直方图,就是统计这个图像当中intensity的分布情况。直方图在图像处理当中的用处还是挺大的。这里我们说一下直方图的均衡问题。首先,为什么要进行直方图均衡?我们知道,在RGB色彩系统中,我们可以通过一个公式,将RGB色彩图像转换为灰度图像,这个公式就是Gray =...
分类:
其他好文 时间:
2015-08-07 21:37:42
阅读次数:
198
http://www.myext.cn/kaifa/a_102.html Ext之家无标题页 function makeCookie(){ var themes = [ ['default', '默认'], ['gray', '灰色'], ['green', '绿色'], ['olive...
分类:
Web程序 时间:
2015-08-06 13:05:57
阅读次数:
187