#include <stdio.h>
#include <stdlib.h>
double pi = 3.1415926535898;
int main(int argc, char *argv[])
{
int cnt, i;
float x, y;
int year;
scanf("%d", &cnt);
for (i=1; i<=cnt; i++)
{
scanf("%f %f", &x, &y);
double temp = pi * (x*x + y*y) / 100.0;
year = temp;
year += (temp - year > 0.0) ? 1 : 0;
printf("Property %d: This property will begin eroding in year %d.\n", i, year);
}
printf("END OF OUTPUT.");
return 0;
}
分享到:
相关推荐
这个是TYVJ题库的P1005:滑雪 问题的解 我采用了向四个方向搜索的办法 在其网站上的评测系统中通过
P1005专属代码,欢迎大家下载,不知道能不能用
P1005 最大公约数.cpp
c#调试程序一例详细演示程序调试结果流程跟踪及应用 附件传错了 请老大删除了吧
hp-laserjet_p1005 hp-laserjet_p1006 hp-laserjet_p1007 hp-laserjet_p1008 hp-laserjet_p1009 hp-laserjet_p1505 hp-laserjet_p1505n-zxs hp-laserjet_p2014-zxs hp-laserjet_p2014n-zxs hp-laserjet_p2015_series...
NOIP 2007 的题目矩阵取数游戏的pascal源代码,测试数据全部通过。