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

史上最水的问题,和3749一样

Posted by asen11 at 2012-08-01 21:50:51 on Problem 1298
#include <stdio.h>
#include <string.h>
char ss[26]={'V','W','X','Y','Z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U'};

int main(void)
{
	int i,len;
	char s1[20];
	char s2[210];
	while(gets(s1))
	{
		if(s1[0]=='E') break;
		gets(s2);
		gets(s1);
		len = strlen(s2);
		for(i=0;i<len;i++)
			if(s2[i]-'A'>=0 && s2[i]-'A'<26)
				printf("%c",ss[s2[i]-'A']);
			else
				printf("%c",s2[i]);
		printf("\n");

	}
	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