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 |
还短一些In Reply To:更短一些。。。 Posted by:lithum at 2009-08-09 17:51:15 #include <stdio.h> int main(){ char s[26],p[80],*t; scanf("%s\n%[^\n]",s,p); for(t=p;*t;t++) printf("%c",*t==' '?' ':*t<='Z'?s[*t-'A']-32:s[*t-'a']); printf("\n"); return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator