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 |
Re:让switch或者elseif快些的办法In Reply To:让switch或者elseif快些的办法 Posted by:cooper at 2007-06-12 13:11:37 //俺是用JAVA的~嘿嘿~ private static char formalize(char chr) { if (chr >= '0' && chr <= '9') return chr; else if (chr >= 'A' && chr <= 'Y') return (char) ((chr < 'Q' ? chr - 'A' : chr - 'B') / 3 + '2'); else return ' '; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator