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 |
yanyifu#include "math.h" #include "stdio.h" void main() { int n,i,year; float x,y; scanf("%d",&n); for (i=0;i<n;i++) { scanf("%f %f",&x,&y); year=(int)ceil((x*x+y*y)*3.14159/50);//公式待定 printf("Property %d: This property will begin eroding in year %d.",i+1,year); } printf("END OF OUTPUT."); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator