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 317781250 at 2008-05-29 19:53:58 on Problem 1005
In Reply To:Re:这道题的意思是什么啊,小弟英语太差了 Posted by:317781250 at 2008-05-29 19:43:44
查了n页字典终于明白
#include "stdio.h"
main()
{int n,i,j,z;
 float area,t=3.14,x,y;
 scanf("%d",&n);
 for(i=0;i<n;i++)
    {z=0;
     scanf("%f",&x);
     scanf("%f",&y);
     area=t*(x*x+y*y)/2.0;
     while(area>50)
        {area=area-50;
        	z=z+1;
     }   
     printf ("Property %d: This property will begin eroding in year %d.\n",i+1,z+1);}
    printf("END OF OUTPUT.\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