| ||||||||||
| 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 | |||||||||
Question about outputSorry I cannot type Chinese on this computer.
1:
cout<<"Case "<<char(c+'0')<<": the next triple peak occurs in "<<ans<<" days."<<endl;
2:
printf("Case %d: the next triple peak occurs in %d days.\n",c,ans);
I am curious why 1 is wrong answer but 2 is accepted.
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator