本题被描述者现在才来做这道题。。。对我就是KPM。。。先Orz云神吧~把所有字符串反向建立一棵Trie,然后建立DFS序,那么Trie上的每个点的子树就对应着DFS序上的一段数。然后将每个字符串的标号插入,无修改的话只需要主席树。#include #include #include #include...
分类:
其他好文 时间:
2015-05-05 18:44:00
阅读次数:
122
//编写一个函数reverse_string(char * string)(递归实现)
//实现:将参数字符串中的字符反向排列。
//要求:不能使用C函数库中的字符串操作函数。
#include
#include
void reverse_string(char const * string)
{
assert( string != NULL );
if( *string != '\0' ...
分类:
编程语言 时间:
2015-04-06 15:44:43
阅读次数:
186
/*编写一个函数reverse_string(char * string)(递归实现)
实现:将参数字符串中的字符反向排列。
要求:不能使用C函数库中的字符串操作函数。*/
#include
#include
void reverse_string(char const * string)
{
assert( string != NULL );
if( *string != '\0' ...
分类:
编程语言 时间:
2015-04-05 21:58:58
阅读次数:
155
将用户输入的字符串反向输出到页面上,并且要求将其中的小写字母转换成大写字母。
分类:
其他好文 时间:
2014-10-05 17:49:58
阅读次数:
963