标签:des style blog http io ar color os sp
ZZOOOJJJ ZZZZOOOOOJJJ ZOOOJJ E
ZOJZOJOJ ZOJZOJZOJZOO ZOJOJO
#include<stdio.h>
#include<string.h>
int main()
{
int i,len;
char s[102];
int str[200];
while(scanf("%s",s)&&s[0]!='E')
{
len=strlen(s);
memset(str,0,sizeof(str));
for(i=0;i<len;i++)
{
if(s[i]=='Z')
str['Z']++;
if(s[i]=='O')
str['O']++;
if(s[i]=='J')
str['J']++;
}
while(len--)
{
if(str['Z'])
{
printf("Z");
str['Z']--;
}
if(str['O'])
{
printf("O");
str['O']--;
}
if(str['J'])
{
printf("J");
str['J']--;
}
}
printf("\n");
}
return 0;
} 标签:des style blog http io ar color os sp
原文地址:http://blog.csdn.net/hdd871532887/article/details/41841695