题目地址:HDU 4908
这个题是从m开始,分别往前DP和往后DP,如果比m大,就比前面+1,反之-1.这样的话,为0的点就可以与m这个数匹配成一个子串,然后左边和右边的相反数的也可以互相匹配成一个子串,然后互相的乘积最后再加上就行了。因为加入最终两边的互相匹配了,那就说明左右两边一定是偶数个,加上m就一定是奇数个,这奇数个的问题就不用担心了。
代码如下:
#include
#inclu...
分类:
其他好文 时间:
2014-08-03 23:17:46
阅读次数:
240
对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据?...
分类:
数据库 时间:
2014-08-03 20:44:35
阅读次数:
427
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2817题目大意:给出三个数,来判断是等差还是等比数列,再输入一个n,来计算第n个数的值。 1 #include 2 #include 3 #include 4 #define m 200907 5 ...
分类:
其他好文 时间:
2014-08-03 15:02:35
阅读次数:
188
本文出自:http://blog.csdn.net/svitter
题意分析:
Given m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integers. It's clear
...
分类:
其他好文 时间:
2014-08-03 12:54:15
阅读次数:
912
Hang Up the System
Time Limit: 2 Seconds Memory Limit: 32768 KB
You're going to design a multi-task operating system for an embedded system. Because the resources are limited on this mini c...
分类:
其他好文 时间:
2014-08-02 18:22:13
阅读次数:
328
题目:下列操作Change operations:0 a b change all characters into '0's in [a , b]1 a b change all characters into '1's in [a , b]2 a b change all '0's into...
分类:
其他好文 时间:
2014-08-02 15:06:23
阅读次数:
266
Oracle GoldenGate(OGG) trail file的最大大小...
分类:
数据库 时间:
2014-08-02 12:51:13
阅读次数:
249
Oracle GoldenGate的思想天空--感悟OGG的本质...
分类:
数据库 时间:
2014-08-02 12:48:33
阅读次数:
291
推测Oracle GoldenGate(OGG)OGG目的端 rep进程Checkpoint Lag的计算方法...
分类:
数据库 时间:
2014-08-02 10:06:03
阅读次数:
289