链接:http://acm.fzu.edu.cn/problem.php?pid=2181 思路:乍一看以为是并查集,仔细想了下又找不到让函数结束的条件,所以就看了其他人的搜索大法 ...
分类:
其他好文 时间:
2016-09-04 14:30:34
阅读次数:
167
Problem Description 问题很简单,给你一个字符串s,问s的子串中不包含s1,s2...sn的最长串有多长。 Input 输入包含多组数据。第一行为字符串s,字符串s的长度1到10^6次方,第二行是字符串s不能包含的子串个数n,n<=1000。接下来n行字符串,长度不大于100。 字 ...
分类:
其他好文 时间:
2016-08-24 15:52:32
阅读次数:
168
http://acm.fzu.edu.cn/problem.php?pid=2128 分析:利用strstr()函数将每个字串在原串中的首尾位置存储一下,再将首尾从小到大排一下序。(写着写着就感觉和看电视节目那一道题一样一样的啊~) 例子: aaaa 2 aa aa 答案:1 abc 1 d 答案: ...
分类:
其他好文 时间:
2016-08-23 11:36:25
阅读次数:
284
FZU 2105 Digits Count Time Limit:10000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Practice FZU 2105 Digits Count Practice Description Given ...
分类:
其他好文 时间:
2016-08-22 00:28:20
阅读次数:
254
FZU 2215 Simple Polynomial Problem (多项式乘法 栈)...
分类:
其他好文 时间:
2016-08-20 19:30:01
阅读次数:
190
Floor problem Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u FZU 2104 Floor problem FZU 2104 Description In this problem, we hav ...
分类:
其他好文 时间:
2016-08-20 19:24:47
阅读次数:
124
Star Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u FZU 2110 Star FZU 2110 Description Overpower often go to the playground with ...
分类:
其他好文 时间:
2016-08-20 19:18:39
阅读次数:
195
Hua Rong Dao Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u FZU 2107 Hua Rong Dao FZU 2107 Description Cao Cao was hunted down b ...
分类:
其他好文 时间:
2016-08-20 19:17:47
阅读次数:
214
Solve equation Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u FZU 2102 Solve equation FZU 2102 Description You are given two pos ...
分类:
其他好文 时间:
2016-08-20 19:14:45
阅读次数:
173