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

......我居然WA了一次...就是因为一个超级低级的失误...留名

Posted by sgxiao at 2008-08-23 23:09:09 on Problem 3650
/*
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:
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