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了无数次就因为我用的gets(),没有用scanf(),还以为是我的程序错了呢,拼命的找错误,没有结果!突然看见一个space,改过来一试,就AC了.郁闷~~~~~~~~~~~~~~

Posted by f12 at 2008-02-18 16:31:39 on Problem 1850
In Reply To:我无语了!WA了无数次就因为我用的gets(),没有用scanf(),还以为是我的程序错了呢,拼命的找错误,没有结果!突然看见一个space,改过来一试,就AC了.郁闷~~~~~~~~~~~~~~ Posted by:fgjlwj at 2006-03-07 15:20:31
输入某行的末尾有多余的空格 scanf %s和cin>>string是不吃空格的 gets要吃

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