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 |
怎末会WA呢?????太伤我自尊了。。。。呜呜。。。。。#include<stdio.h> #include<string.h> int main() { int n=100,i,j; char a[1000],s[100],e[100]; while (n--) { gets(s); 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