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

怎末会WA呢?????太伤我自尊了。。。。呜呜。。。。。

Posted by jxwking2010 at 2006-07-20 16:58:03 on Problem 1298
#include<stdio.h>
#include<string.h>
int main()
{  
   int n=100,i,j;
   char a[1000],s[100],e[100];
   while (n--) {

    gets(s);
	gets(a);
	 gets(e);
    i= strlen(a);
	for(j=0;j<i;j++)
	{
		if(a[j]>=65&&a[j]<=69)
		{a[j]=a[j]+21;continue;}
		if(a[j]>69&&a[j]<=90)
        a[j]=a[j]-5;
	}
		puts(a);
 

   }
   return 0;



   }

  

























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