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了一次...就是因为一个超级低级的失误...留名/* Author: sgxiao Title: 3650 -- The Seven Percent Solution LANG: C Date : Sat Aug 23 22:31:38 CST 2008 */ #include<stdio.h> int main(void) { char input; while( (input = getchar()) != '#') { switch(input) { case ' ' : printf("%s","%20"); break; case '!' : printf("%s","%21"); break; case '$' : printf("%s","%24"); break; case '%' : printf("%s","%25"); break; case '(' : printf("%s","%28"); break; case ')' : printf("%s","%29"); break; case '*' : printf("%s","%2a"); break; default : printf("%c", input); break; } } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator