Codeforces(tag: Data Structures) - Gemini Boy - ACM之路~

Codeforces(tag: Data Structures)

Gemini posted @ 2013年6月05日 09:22 in 题解 with tags 数据结构 codeforces , 772 阅读

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

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee