| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:why presentation error???!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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator