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

求助1005题

Posted by caihua at 2010-06-01 16:22:41
#include <stdio.h>
void main (){
        float pi =  3.1415926;
        int i;
        scanf ("%d",&i);
        int k = 0;
        int sum = 1;
        float x,y;
        while (k < i){
                scanf ("%f %f",&x,&y);
                while ((pi*(x*x+y*y)/2.0) > (sum*50.0))
                        sum++;
                printf ("Property %d: This property will begin eroding in year %d.\n",(k+1),sum);
                k++;
        }
        printf ("END OF OUTPUT.");
}
提交上去是编译错误,实在不知道哪里有问题

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