| ||||||||||
| 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 | |||||||||
Re:为什么这个通不过?(0error 0warning)In Reply To:为什么这个通不过?(0error 0warning) Posted by:90401408 at 2004-11-12 12:02:11 > #include <stdio.h>
> #include <math.h>
> #include <iostream.h>
>
> void main() {
> double X,Y,pi;
> pi=acosl(-1.0);
> int i,N,year;
> scanf("%d\n",&N);
> for(i=1;i<N;i++) {
> scanf("%.1f %.1f\n",&X,&Y);
> year=(int)ceil(pi*(X*X+Y*Y)/2/50);
> printf("Property %d: This property will begin eroding in year %d.\n",i,year);
> }
> printf("END OF OUTPUT.\n");
> }
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator