题目链接:HDU - 1506A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may h...
分类:
其他好文 时间:
2015-04-27 01:52:18
阅读次数:
123
题目链接:http://poj.org/problem?id=3017题意:给你一个长度为n的数列,要求把这个数列划分为任意块,每块的元素和小于m,使得所有块的最大值的和最小分析:这题很快就能想到一个DP方程f[i]=min{f[j]+max{a[k]}}(b[i] 2 #include 3 #i....
分类:
其他好文 时间:
2015-04-26 22:24:00
阅读次数:
191
Wireshark对ping报文的解码显示(BE与LE) 我们非常熟悉ping报文的封装结构,但是,在这个报文解码里,我们发现wireshark的解码多了几个参数:Identifier(BE)、Identifier(LE)、Sequence number(BE)、Sequence number(LE...
分类:
其他好文 时间:
2015-04-26 20:54:49
阅读次数:
176
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 sequence of ...
分类:
其他好文 时间:
2015-04-25 18:26:11
阅读次数:
139
一、exp/imp和expdp/impdp在功能上的区别: 1、把用户usera的对象导入到userb emp/imp用法: formuser=usera touser=userb; empdp/impdp用法: remap_schema='usera':'userb' 例如: imp...
分类:
数据库 时间:
2015-04-24 18:09:37
阅读次数:
133
Language:
Frequent values
Time Limit: 2000MS Memory Limit: 65536K
Total Submissions: 14377 Accepted: 5244DescriptionYou are given a sequence of n integers a1 , a2 , … , an in non-decreas...
分类:
其他好文 时间:
2015-04-24 16:22:34
阅读次数:
127
大白书上P42那个计算器的题目就用到了这个办法,Floyd判圈法。当然,用STL里的map也是可以的。 1 #include 2 #include 3 4 const int maxn = 20; 5 int n; 6 int a[maxn], b[maxn], c[maxn]; 7 8 v...
分类:
其他好文 时间:
2015-04-24 14:18:58
阅读次数:
316
Natural Language Processing with PythonCharpter 6.1 1 import nltk 2 from nltk.corpus import brown 3 4 def pos_features(sentence,i,history): 5 fea...
分类:
其他好文 时间:
2015-04-24 13:57:26
阅读次数:
176
http://acm.hdu.edu.cn/showproblem.php?pid=2665
Problem Description
Give you a sequence and ask you the kth big number of a inteval.
Input
The first line is the number of the t...
分类:
其他好文 时间:
2015-04-24 12:33:31
阅读次数:
116
Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7)...
分类:
其他好文 时间:
2015-04-24 12:29:58
阅读次数:
166