简单的字符串-题解(C语言代码) 摘要: #include #include int main(){ int x,y,z=0,d; scanf("%d",&x); while(z…… 题解列表 2019年08月11日 0 点赞 0 评论 1288 浏览 评分:0.0
简单的字符串-题解(C语言代码)(我的是笨法子) 解题思路:这里有一个用于计数的整型变量,用count代替吧,count=1为初始值。针对输入的一个字符串而言,从第二个字符开始鉴别(注意是str[1]不是str[0]或str[2]),将当前字符与上一个字符进行比较:1.若相同,则count的值加1;2.若不同, 题解列表 2019年07月31日 0 点赞 5 评论 1740 浏览 评分:9.0
简单的字符串-题解(C语言代码) 摘要: #include int main() { char a[10000]; int n,i,j; scanf("%d",&n); for(i=0…… 题解列表 2019年07月25日 0 点赞 0 评论 1286 浏览 评分:6.0
简单的字符串-题解(C++代码)(注释清晰) #include#include#includeconstintmaxn=26;usingnamespacestd;intmain(void){stringpass_s,new_s;intnum[maxn],T,j;scanf("%d",&T);while(T--){intcount=1, 题解列表 2019年07月16日 0 点赞 0 评论 1581 浏览 评分:0.0
简单的字符串 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,i,j,k,t; char s[10001]; scanf("%…… 题解列表 2018年02月22日 0 点赞 0 评论 1684 浏览 评分:2.7