| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
很水的一题~~为什么叫hardest呢?#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator