#include<stdio.h>
int main ()
{
char i;
int a=0,b=0,c=0,d=0,x;
printf("input:");
do{
while((i=getchar()) !='\n' )
{
if (i=='#' )
++a;
else
if(i=='@')
b=b+2;
else
if(i=='T')
++c;
else
if (i=='H')
++d;
x=a+b+c+d;}}
while((i=getchar()) !='\n' );
printf("%d %d %d %d\n",a,b,c,d);
printf( "%d\n",x );
getchar();}
傻圆傻圆
相关分类