Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
草,为什么不用数组就能过啊?int main() { int flag = 0; char c; while( ( c = getchar() ) != EOF ) { if( c == '"' && flag == 0 ) { printf( "``" ); flag = 1; } else if( c == '"' && flag == 1 ) { printf( "\'\'" ); flag = 0; } else putchar( c ); } return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator