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 |
ACLAIn Reply To:没看清要求阿。。。郁闷 Posted by:jxwking2010 at 2006-07-20 17:00:22 #include<stdio.h> #include<string.h> int main() { int i,j; char a[1000],s[100],e[100],b[11]="ENDOFINPUT"; while (1) { gets(s); if(strcmp(s,b)==0)break; gets(a); gets(e); i= strlen(a); for(j=0;j<i;j++) { if(a[j]>=65&&a[j]<=69) {a[j]=a[j]+21;continue;} if(a[j]>69&&a[j]<=90) a[j]=a[j]-5; } puts(a); } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator