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:荒唐,请问ab和aba谁的字典序在前?

Posted by J_Sure at 2014-09-12 15:34:00 on Problem 2337
In Reply To:荒唐,过不了这组简单的数据,交上去竟AC了~ Posted by:Practice_Scott at 2012-08-17 20:21:33
> aa
> ab
> aba
> ba
> bb
> 
> 正确结果
> aa.aba.ab.bb.ba
> 
> 
> 错误结果
> aa.ab.bb.ba.aba
> 
> 原因是我默认了ab<aba,但其实ab后添加的单词结合起来有可能小于ab的~
> 最蛋疼的是POJ数据太水了~

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