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 YA_ME_DE at 2009-04-27 14:03:00 on Problem 1200
In Reply To:过的同学能给看看这段代码为什么WA吗?很短 Posted by:YA_ME_DE at 2009-04-27 13:54:59
还是没搞懂RK为什么一定要初始化

比如
如果字符串只可能为小写字母组成,则acm就对应到0×26^2+2*26+12

那如果不初始化的话,它不也可以对应

0*26^0+2*26^1+12*26^2吗?这样也是26进制数一一对应的啊

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