程序设计acm_pku
文章平均质量分 81
tsfissure
这...不填可以不...
展开
-
hdu 1238 & POJ 1226 Substrings
hdu题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1238 POJ题目链接:http://poj.org/problem?id=1226 Problem Description You are given a number of case-sensitive strings of alphabetic characters, find the原创 2012-08-09 16:34:56 · 1201 阅读 · 0 评论 -
PKU 2481 Cows & PKU 2352 Stars & HDU 1541 Stars
题目链接地址: PKU 2481:http://poj.org/problem?id=2481 PKU 2352:http://poj.org/problem?id=2352 HDU 1541:http://acm.hdu.edu.cn/showproblem.php?pid=1541 其中PKU 2352和HDU 1541是一样的。 = =、、买一送一。。 ***********原创 2012-08-23 00:26:07 · 986 阅读 · 0 评论 -
POJ 1470/PKU 1470 Closest Common Ancestors __LCA
题目链接:http://poj.org/problem?id=1470 题目大意:开始让你构造一棵树,然后有Q对u,v,最后让你求出每对u,v的最近祖先的编号和次数。 输入一个Q,然后有Q组(u,v)每组中间还有空格,tab等。但,稍稍想一下就能发现,Q组uv一共有Q*2个字符串,所以我们讲稿Q*2组str就可以了scanf("%s",str),然后处理每组str求得u,v /*原创 2013-06-15 23:11:15 · 1061 阅读 · 1 评论