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

还短一些

Posted by Leftwo at 2014-04-12 05:46:17 on Problem 2141
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:
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