Follows 445.c (Total 21 lines):

/* @JUDGE_ID:4461XX 445 C */
/* A */
#include<stdio.h>
#include<ctype.h>
void main( void )
{
	long num , i ;
	char ch ;
/*	freopen( "C:\\windows\\desktop\\445.in" , "r" , stdin ) ;*/
	for( num=0 ; ; ){
		scanf( "%c" , &ch ) ;
		if( feof( stdin ) ) break ;
		if( isdigit( ch ) ) num += ch - '0' ;
		else{
			if( ch == '!' || ch == '\n' ) putchar( '\n' ) ;
			if( ch == 'b' ) ch = ' ' ;
			for( i=0 ; i<num ; i++ ) printf( "%c" , ch ) ;
			num = 0 ;
		}
	}
}

Back to statistics
Ya-Lin Huang (C)
huangyl@gmail.com