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 fcrosfly at 2004-10-10 23:10:47 on Problem 1898
void outres(int n)
{
        int i,j;
        int tot = 0;
        char test1[10],test2[10];
        double temp=calc(n);//得到H
        for (i=0;i<n;i++)
        {
                for (j=0;j<tres[i];j++)
                        printf("%c",itochar(i));

        }
        printf("\n");
        for (i=0;i<n;i++)
                tot += tres[i];
        assert(tot<=1000);//总数小于1000
        sprintf(test1,"%0.2lf",temp);
        sprintf(test2,"%0.2lf",e);
        assert(strcmp(test1,test2)==0);//严格相等
}

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