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 DavidDyn at 2019-11-18 15:01:35 on Problem 1051
准确的说是一道数据结构题。如果对效率有着丧心病狂的要求,那么map什么的肯定是不能用的,要用哈希。编码时,直接用ASCII码作为下标打索引;解码时,把.翻译成0,把-翻译成1,通过位运算拼成一个4位的整数,直接把这个整数作为下标访问哈希表。

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