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

贴出代码,希望后面的同志一次过

Posted by qq312873977 at 2009-04-16 19:32:08 on Problem 2141
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main()
{
	char key[27]={0},input[100]={0};
	gets(key);
	gets(input);
	for(int i=0;i<strlen(input);i++)
	{
		if(input[i]==' ')
			continue;
		if(isupper(input[i]))
			input[i]=toupper(key[input[i]-'A']);
		else
			input[i]=key[input[i]-'a'];
	}
	puts(input);
	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