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

此题真是简单过。一次ac。贴代码:

Posted by 0810311106 at 2009-09-12 20:38:45 on Problem 2141
#include"stdio.h"
#include"string.h"
int main()
{
	char a[30],map[200],char b[90];
	int i,j,k;
	scanf("%s",&a);
	getchar();
	gets(b);
	i='a';
	for(j=0;j<strlen(a);j++)
	  map[i++]=a[j];
	for(i=0;i<strlen(b);i++)
	   if(b[i]>='A'&&b[i]<='Z')
	      printf("%c",map[b[i]+32]-32);
	   else if(b[i]>='a'&&b[i]<='z')
	     printf("%c",map[b[i]]);
	   else
	     printf("%c",b[i]);
	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