现在的位置: 首页 > 综合 > 正文

poj1750

2017年07月28日 ⁄ 综合 ⁄ 共 202字 ⁄ 字号 评论关闭
#include
#include
int main(){
int g=0,m,n,i;
char a[3][15];a[0][0]='\0';
while(gets(a[1])&&a[1][0]){
     
  m=strlen(a[0]),n=strlen(a[1]);
for(i=0;i
if(i>g) g++;
else g=i;
for(i=0;i
puts(a[1]);
strcpy(a[0],a[1]);
}
return 0;
}

抱歉!评论已关闭.