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

Re:各位大哥大姐请帮帮忙,看一下那错了

Posted by 0911270008 at 2009-12-02 15:03:25 on Problem 1001
In Reply To:各位大哥大姐请帮帮忙,看一下那错了 Posted by:20080020 at 2009-05-18 21:26:40
> 题号1005
> #define PAI 3.1
> #include "stdio.h"
> int main()
> { int i,N;
>   float a,b;
>   double c[20],d;
>   scanf("%d",&N);
>   for(i=0;i<N;i++)
>   {scanf("%f%f",&a,&b);
>    c[i]=a*a+b*b;
>   }
>   for(i=1;i<=N;i++)
>    {d=c[i-1]*PAI/100+1; 
>     printf("Property %d: This property will begin eroding in year %.0lf.\n",i,d);
>    }
>    printf("END OF OUTPUT.\n");
>   return 0;
> } 
> 
> 返回结果是:Wrong Answer

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