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

Re:过的同学能给看看这段代码为什么WA吗?很短

Posted by tyeken8 at 2010-02-07 23:05:36 on Problem 1200
In Reply To:Re:过的同学能给看看这段代码为什么WA吗?很短 Posted by:YA_ME_DE at 2009-04-27 14:03:00
> 还是没搞懂RK为什么一定要初始化
> 
> 比如
> 如果字符串只可能为小写字母组成,则acm就对应到0×26^2+2*26+12
> 
> 那如果不初始化的话,它不也可以对应
> 
> 0*26^0+2*26^1+12*26^2吗?这样也是26进制数一一对应的啊

不一定都是小写字母
可能有别的字符
Over

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