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

Re:怎么总是Output Limit Exceeded???谁帮我看看啊??????

Posted by aygxylxk at 2010-04-28 19:43:09 on Problem 2141
In Reply To:怎么总是Output Limit Exceeded???谁帮我看看啊?????? Posted by:fengxiangyun at 2009-12-13 15:54:09
> #include<stdio.h>
> #include<string.h>
> void main()
> {
> 	int i,j,l,k;
> 	char b[26],c[100],w[26];
> 	while(1)
> 	{
> 	    
> 		gets(b);
> 		k=strlen(b);
> 		for(i=0;i<k;i++)
> 		{
> 			w[i]=b[i]-32;
> 		}
> 	    gets(c);
> 	    l=strlen(c);
> 	    for(i=0;i<l;i++)
> 		{
> 		    for(j=97;j<123;j++)
> 			{
> 			    if(c[i]==j&&c[i]>='a'&&c[i]<='z')
> 				{
> 				    c[i]=b[j-97];break;
> 				}
> 				if(c[i]==j-32&&c[i]>='A'&&c[i]<='Z')
> 				{
> 					c[i]=w[j-97];
> 				}
> 			}
> 		}
> 	    for(i=0;i<l;i++)
> 		{
> 		    printf("%c",c[i]);
> 		}
> 	}
> }
> 

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