whli##ilr#e(s#*s)outcha@putchar(*s=#++);Example Output
while(*s)putchar(*s++);
#include <stdio.h>#include <string.h>int main(){ char a[300],s[300]; while(~scanf("%s",a)) { // memset(s,0,sizeof(s)); //memset(a,0,sizeof(a)); int top=0; int i,len,j; len=strlen(a); for (i = 0; i < len; ++i) { if(a[i]!='#'&&a[i]!='@') { s[top++]=a[i]; } else if (a[i]=='#') { if(top!=0) top--; } else if(a[i]=='@') { top=0; } } s[top]='/0'; printf("%s/n",s); } return 0;}
新闻热点
疑难解答