RayZhu @ 2020-04-03 12:34:30
这题啥意思啊
by IntrepidStrayer @ 2020-04-03 12:35:18
这题就这意思
by 星辰风月 @ 2020-04-03 12:35:31
哪道题
by RayZhu @ 2020-04-03 12:36:14
P1320压缩技术
by 星辰风月 @ 2020-04-03 12:36:23
傻逼
by RayZhu @ 2020-04-03 12:37:34
?
by luosw @ 2020-04-03 12:40:22
@语文王子 给他不惜
by 星辰风月 @ 2020-04-03 12:41:46
#include <string.h>
int main()
{
int i,n,num,sum;
char text[40000],str[200];
scanf("%s",str);
n=strlen(str);
strcat(text,str);
for(i=2;i<=n;i++)
{
scanf("%s",str);
strcat(text,str);
}
printf("%d ",n);
for(i=0,sum=0,num='0';i<=strlen(text);i++)
if(num==text[i])
sum++;
else
{
num=text[i];
printf("%d ",sum);
sum=1;
}
return 0;//鸡你太美
}
by 星辰风月 @ 2020-04-03 12:42:11
我之前做过
by monstersqwq @ 2020-04-03 12:46:34
你还想要什么意思,就题面这意思
by 星辰风月 @ 2020-04-03 12:54:37
???