求最短公共祖先,是最长公共子序列的变形。在DP的同时记录下路径,然后递归回去输出即可。如果碰到公共的,只输出一次。以第一个样例为例:图中数字是最大公共子段的长度,下标代表路径。带下划线的是递归时所走的路径。 1 //#define LOCAL 2 #include 3 #include 4 #i.....
分类:
其他好文 时间:
2014-07-31 16:02:46
阅读次数:
232
AAC V.S. MP3http://en.wikipedia.org/wiki/Advanced_Audio_Coding#AAC.27s_improvements_over_MP3AAC patent lisense FAQ:http://www.vialicensing.com/licensi...
分类:
移动开发 时间:
2014-07-30 23:23:15
阅读次数:
407
Redmine 插件安装 1. Code Review ?? 可对开发人员提交的代码进行在线review, 对指摘项目进行管理, 是目前对我帮助最大的插件。 2. Advanced Roadmap ?? 对roadmap view进行了功能强化,可显示每个具体versi...
分类:
其他好文 时间:
2014-07-30 17:58:15
阅读次数:
392
1.错误
/usr/lib/python2.5/site-packages/Cheetah/Compiler.py:1532: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully s...
分类:
移动开发 时间:
2014-07-30 17:35:24
阅读次数:
1427
Eclipse 默认的Javadoc API是英文版的,修改成中文版本的API步骤为:Window-->Preference-->Java-->Installed JREs 选择已经安装好的JRE-->Edit-->JRE system libraries-->rt.jar (默认是英文版本的源代码...
分类:
编程语言 时间:
2014-07-30 11:32:03
阅读次数:
288
[1]InstallHttpdforCentos7-media#yum--enablerepo=centos7-media-yinstallhttpd
Installed:
httpd.x86_640:2.4.6-18.el7.centos[2]starthttpd,开机启动#systemctlstarthttpd.service
#systemctlenablehttpd.service
ln-s‘/usr/lib/systemd/system/httpd.service‘‘/etc/systemd..
分类:
其他好文 时间:
2014-07-29 15:58:49
阅读次数:
367
??
Description
Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an electronic ID tag that the system will read ...
分类:
其他好文 时间:
2014-07-29 13:22:46
阅读次数:
212
1.在桌面新建一个1.c,内容如下:
2.打开cmd命令行窗口,进入CodeBlock安装目录下的:E:\Installed\CodeBlocks\MinGW,然后执行mingwvars.bat
3.进入1.c所在的目录:
4.执行编译等动作
5.接着使用VC的编译器进行执行代码。
6.点击VS2013开发人员命令提...
分类:
编程语言 时间:
2014-07-28 16:33:13
阅读次数:
342
核心提示:在Eclipse中查看JDK类库的源代码!!! 设置: 1.点 window- Preferences - Java - Installed JRES 2.此时Installed JRES右边是列表窗格,列出了系统中的 JRE 环境,选择你的JRE,然后点边上的 Edit..., 会出现一个窗口(Edit JRE) 3.选中rt.jar文件的这一项
在Eclips...
分类:
编程语言 时间:
2014-07-28 16:16:23
阅读次数:
217
安装node错误:
wscript:329: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are installed. Use configure --without-ssl to disable this message.
说明没有安装 openssl-de...
分类:
其他好文 时间:
2014-07-28 16:06:03
阅读次数:
234