| ||||||||||
| 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 | |||||||||
我几乎敢肯定,这题的输出有问题for(i=m+n-2;i>=0;i--)
{
if(s[i]==1 || i==0)
{
printf("%d",i+1);
for (int j=i;j>=0;j--) printf(" %d",s[j]);
printf("\n");
break;
}
}
AC了
for(i=m+n-2;i>=0;i--)
{
if(s[i]==1 || i==0)
{
cout<<i+1;
for (int j=i;j>=0;j--) cout<<ends<<s[j];
cout<<endl;
break;
}
}
居然wa
实在令人费解,难道ends与" "有区别?!我还专门把这两种输出方法放在相邻的两行输出,结果对的整整齐齐
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator