![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串处理问题
WEIHAI1996
这个作者很懒,什么都没留下…
展开
-
NYOJ 264--国王的魔镜
http://acm.nyist.net/JudgeOnline/problem.php?pid=264 #include #include int main() { int N,n; int i,lap; char a[105]; scanf("%d",&N); getchar(); while(N--) { lap=0; gets(a+1);原创 2015-06-21 17:49:47 · 335 阅读 · 0 评论 -
HDOJ 1860 统计字符
http://acm.hdu.edu.cn/showproblem.php?pid=1860 #include #include #include #include #include int main() { int n1,n2; int i,j; char a[6]; char b[81]; int c[6]; while(gets(a)) { if(a[0]原创 2015-07-22 17:57:38 · 388 阅读 · 0 评论 -
HDOJ 2027 单词数
http://acm.hdu.edu.cn/showproblem.php?pid=2072 #include #include #include #include #include #define N 10000 struct danci { char c[100]; }a[N]; char b[N]; int main() { int i,j,k; int原创 2015-07-22 19:04:12 · 413 阅读 · 0 评论 -
HDOJ 2087 剪花布条----strstr函数
http://acm.hdu.edu.cn/showproblem.php?pid=2087 /* strstr(str1,str2)是一种函数,从字符串str1中查找是否有符串str2, 如果有,从str1中的str2位置起,返回str1的指针,如果没有,返回null。 */ #include #include #include #include #include #de原创 2015-07-22 19:06:40 · 403 阅读 · 0 评论 -
HDOJ 2017 字符串统计
http://acm.hdu.edu.cn/showproblem.php?pid=2017 #include #include #include #include char a[110]; int main() { int i; int str; while(gets(a)) { str=strlen(a); if(isalpha(a原创 2015-07-22 19:13:39 · 380 阅读 · 0 评论