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:ACLA

Posted by z_wei at 2008-07-23 19:28:08 on Problem 1298
In Reply To:ACLA Posted by:jxwking2010 at 2006-07-20 17:10:27
	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;
	}
改成
         for(j=0;j<strlen(a);j++)
         {
            if(a[j]>=65&&a[j]<=90)
               a[j]=(a[j]+21-65)%26+65;
         }好看

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