Fork me on GitHub

  2013年1月20日
摘要: http://ac.jobdu.com/problem.php?pid=1149题目描述:给出一个01字符串(长度不超过100),求其每一个子串出现的次数。输入:输入包含多行,每行一个字符串。输出:对每个字符串,输出它所有出现次数在1次以上的子串和这个子串出现的次数,输出按字典序排序。样例输入:10101样例输出:0 201 21 310 2101 2#include <stdio.h>#include <string.h>#include <stdlib.h>char arr[10000][101];int cmp(const void * a,const 阅读全文
posted @ 2013-01-20 19:09 huashiyiqike 阅读(182) 评论(0) 推荐(0)