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 20053565 at 2007-08-10 23:43:23 on Problem 3337
In Reply To:那位高手帮看看,不知为什么总是wa Posted by:jsjhoubo at 2007-08-10 22:15:46
加一句str[i] = '\0';
在
while(ch!='\n')
{
	str[i++]=ch;
	ch=getchar();
}
就OK了

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