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 HJWAJ at 2010-08-16 16:28:25 on Problem 2136
In Reply To:不知为什么会WA,路过的请指教一下,谢谢(附代码) Posted by:HJWAJ at 2010-08-16 16:04:32
AC了。。。字符值为0的时候输出和不输出居然是有区别的。。。
cout<<str[max-1-i][j];
改成if(str[max-1-i][j]!=0)cout<<str[max-1-i][j];
就AC了

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