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

恶心的输出

Posted by alpczy at 2012-03-26 20:31:28 on Problem 2481
这样输出是过了的
 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:
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