| ||||||||||
| 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 | |||||||||
这都不过,郁闷死了,谁能告诉我还缺什么条件啊。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator