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=1;i<n;i++) printf("%d ",ans[i]); printf("%d\n",ans[n]); 而这样输出就超时 for(i=1;i<=n;i++){ if(i!=1) printf(" "); printf("%d",ans[i]); } printf("\n"); 这道题目真心是卡时间 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator