POJ 1005.I Think I Need a Houseboat
2017-01-26 11:32
330 查看
#include <iostream> #include <vector> #include <algorithm> #include <map> #include <string> #include <stdlib.h> #include <math.h> using namespace std; const double PI = 3.1415926; int main() { int n; double x, y; double distance,s; //freopen("d:\\input.txt", "r", stdin); cin >> n; for (int i = 1; i <= n; i++) { cin >> x >> y; distance = x*x + y*y; s = PI*distance/2; printf("Property %d: This property will begin eroding in year %d.\n", i, static_cast<int>(s / 50) + 1); } puts("END OF OUTPUT."); return 0; }
相关文章推荐
- POJ1005-I Think I Need a Houseboat
- POJ 1005 I Think I Need a Houseboat
- POJ1005,I Think I Need a Houseboat,数学水题
- POJ - 1005 I Think I Need a Houseboat
- POJ 1005 I Think I Need a Houseboat
- POJ 1005 I Think I Need a Houseboat (水题)
- POJ 1005--I Think I Need a Houseboat
- POJ 1005 I Think I Need a Houseboat 水题
- [POJ] 1005 -> I Think I Need a Houseboat
- POJ1005 I Think I Need a Houseboat
- POJ 1005 I Think I Need a Houseboat GCC编译
- POJ1005 I Think I Need a Houseboat【π】
- OpenJudge/Poj 1005 I Think I Need a Houseboat
- [POJ]1005 I Think I Need a Houseboat
- POJ 1005 I Think I Need a Houseboat
- POJ 1005 I Think I Need a Houseboat
- Poj_1005_I Think I Need A HouseBoat
- POJ. 1005 I Think I Need a Houseboat(水 )
- poj1005---I Think I Need a Houseboat
- poj-1005 I Think I Need a Houseboat