| ||||||||||
| 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 | |||||||||
Re:怎么总是Output Limit Exceeded???谁帮我看看啊??????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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator