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

很水的一题~~为什么叫hardest呢?

Posted by hugett at 2009-02-13 11:43:46 on Problem 1298
#include<iostream>

int main(){
	char b[20],e[20],c[300],p[300];
	int l,i;
	while(1){
		gets(b);
		if(b[0]=='E')
			break;
		gets(c);
		l=strlen(c);
		i=0;
		while(i<l){
			if(c[i]>64&&c[i]<91)
				p[i]=(c[i]-44)%26+65;
			else
				p[i]=c[i];
			i++;
		}
		p[l]='\0';
		gets(e);
		printf("%s\n",p);
	}
    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