Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

3981

Posted by 1363217105 at 2011-07-21 17:37:09 on Problem 3981
怎么会是错误答案呢,谁能帮我看下代码,非常感谢#include<stdio.h>
#include<string.h>
void main()
{  char s[2005],k[10]={"EOF"};
   int i,j;
   while(gets(s))
   {  if(strcmp(s,k)==0)break;
       for(i=0;i<strlen(s);i++)
	 {
		 if(s[i]=='y'&&s[i+1]=='o'&&s[i+2]=='u')
		 { s[i]='m';s[i+1]='e';for(j=i+2;j<strlen(s);j++)s[j]=s[j+1];}
	   }printf("%s",s);
  }
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator