Codeforces(tag: Data Structures) - Gemini Boy - ACM之路~
Codeforces(tag: Data Structures)
Codeforces 4C: Registration system
链接:http://codeforces.com/problemset/problem/4/C
题意:统计重复子串的个数
做法:map水过0.0,也可以写trie树什么的。
代码君:http://codeforces.com/contest/4/submission/3823233
Codeforces 5C: Longest Regular Bracket Sequence
链接:http://codeforces.com/problemset/problem/5/C
题意:统计长度最长的可以两两配对的括号的长度及个数
做法:用个栈。扫一遍就行了。
代码君:http://codeforces.com/contest/5/submission/3823221