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 swgr at 2008-02-02 00:15:58 on Problem 1002
一。

	c['0']=0;
	c['1']=1;
	c['A']=c['B']=c['C']=c['2']=2;
	c['D']=c['E']=c['F']=c['3']=3;
	c['G']=c['H']=c['I']=c['4']=4;
	c['J']=c['K']=c['L']=c['5']=5;
	c['M']=c['N']=c['O']=c['6']=6;
	c['P']=c['R']=c['S']=c['7']=7;
	c['T']=c['U']=c['V']=c['8']=8;
	c['W']=c['X']=c['Y']=c['9']=9;

二。如果使用排序做的,
那么很可能要特殊判断最后一个数。
因此,可以在最后一个数后面再补上一个数。
这样就不用特殊处理了。

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