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 dgsrz at 2012-01-13 15:18:07 on Problem 1575
In Reply To:求大神帮助。。。改来改去一直WA,不知道哪里有漏洞 Posted by:dgsrz at 2012-01-13 15:01:32
好吧,我看出来了。。。

if(j>0&&word[i+j]==word[i])

前面改成j==1就过了。。。
原来的像banana的数据没法过

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