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:这两个程序有差别

Posted by LCL_data at 2007-08-14 17:04:16 on Problem 1936
In Reply To:真的很郁闷!!!这两个程序有差别吗? Posted by:xtu716 at 2007-08-08 19:59:21
aas dasad
那个WA的程序是Yes!
while(s[j]!=t[i]&&t[i]!='\0')i++;
s[2]没找到匹配的,但是t已经到头了,但是你继续了,
做完这步之后,上去到s[3]=='\0',你就跳出来Yes!

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