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 |
想了半天都不对,最后才发现原来是半圆...贴代码~~#include <stdio.h> float pi = 3.14159; int main() { float x,y; int n,i; scanf("%d",&n); for(i = 1;i<=n;i++){ scanf("%f %f",&x,&y); printf("Property %d: This property will begin eroding in year %d.\n",i,(int)((x*x+y*y)*pi/100 + 1)); } printf("END OF OUTPUT.\n"); return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator