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

ACLA

Posted by jxwking2010 at 2006-07-20 17:10:27 on Problem 1298
In Reply To:没看清要求阿。。。郁闷 Posted by:jxwking2010 at 2006-07-20 17:00:22
#include<stdio.h>
#include<string.h>
int main()
{  
   int i,j;
   char a[1000],s[100],e[100],b[11]="ENDOFINPUT";
   while (1) {

    gets(s);
 if(strcmp(s,b)==0)break;
	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