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:why presentation error???!

Posted by KosonLau at 2007-12-25 16:03:48 on Problem 1597
In Reply To:why presentation error???! Posted by:alpc07 at 2007-09-06 20:03:15
> if (yes)
> printf("%10d%10d    %s\n",s,m,s1);
> else printf("%10d%10d    %s\n",s,m,s2);
> 
> 这样怎么能输出格式错误呢?求助哇!
> 我自己测的时候输出跟标准的一样的啊,大家是怎么输出的,麻烦告诉一下.
a blank line is needed in the end of every ouput
if (yes)
printf("%10d%10d    %s\n\n",s,m,s1); //here add a \n
else printf("%10d%10d    %s\n\n",s,m,s2); //here too

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