本文转载自:http://blog.csdn.net/xuezhimeng2010/article/details/49299781 1.准备图片 使用ubuntu自带的绘图软件GIMP是最为快捷的方式,使用命令进行转换也可以,实际测试中用命令转换图片老提示错误,所以就用GIMP的方式处理了。具体流 ...
分类:
系统相关 时间:
2017-08-21 18:54:10
阅读次数:
277
Subsequence Count Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 256000/256000 K (Java/Others) Problem Description Given a binary string S[1,.. ...
分类:
其他好文 时间:
2017-08-21 17:26:37
阅读次数:
363
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user ...
分类:
其他好文 时间:
2017-08-21 14:47:07
阅读次数:
139
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6155 题意: 题解来自:http://www.cnblogs.com/iRedBean/p/7398272.html 先考虑dp求01串的不同子序列的个数。 dp[i][j]表示用前i个字符组成的以j为 ...
分类:
其他好文 时间:
2017-08-20 22:44:52
阅读次数:
437
题目描写叙述:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may ...
分类:
其他好文 时间:
2017-08-20 19:55:42
阅读次数:
137
Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binar ...
分类:
其他好文 时间:
2017-08-20 12:41:30
阅读次数:
184
Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from the N(1 ≤ ...
分类:
其他好文 时间:
2017-08-20 12:28:26
阅读次数:
217
此文为博主原创题解,转载时请通知博主,并把原文链接放在正文醒目位置。 题目链接:http://poj.org/problem?id=1458 题目大意: 有若干组数据,每组给出两个字符串(中间用任意数量的空格间隔),输出这两个字符串最长公共子序列的长度。每次输出后换行。 分析: 动态规划求LCS,f ...
分类:
其他好文 时间:
2017-08-20 10:07:20
阅读次数:
200
Vpeak to peak is defined as the voltage measured between the maximum Positive and Negative Amplitudes on the sine wave. The Vrms is defined as square ...
分类:
其他好文 时间:
2017-08-20 10:00:44
阅读次数:
281
话说这题比赛时候过的好少,连题都没读TOT 先考虑dp求01串的不同子序列的个数。 dp[i][j]表示用前i个字符组成的以j为结尾的01串个数。 如果第i个字符为0,则dp[i][0] = dp[i-1][1] + dp[i-1][0] + 1,dp[i][1] = dp[i-1][1] 如果第i ...
分类:
其他好文 时间:
2017-08-20 00:49:11
阅读次数:
289