博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
hdu 1065 I Think I Need a Houseboat
阅读量:4687 次
发布时间:2019-06-09

本文共 726 字,大约阅读时间需要 2 分钟。

参考:

1 #include 
2 #include
3 #include
4 #include
5 #define pi 3.1415926 6 using namespace std; 7 int main() 8 { 9 int t;10 while (cin>>t)11 {12 for (int j=1;j<=t;j++)13 {14 float d,x,y;15 cin>>x>>y;16 d=sqrt(x*x+y*y);17 for (int i=1;;i++)18 {19 float s=i*100.0;20 float r=sqrt(s/pi);21 if (d<=r)22 {23 cout<<"Property "<
<<": This property will begin eroding in year "<
<<'.'<

 

转载于:https://www.cnblogs.com/hemeiwolong/p/9397847.html

你可能感兴趣的文章
(3)剑指Offer之数值的整数次方和调整数组元素顺序
查看>>
MongoDB学习笔记(索引)
查看>>
iOS - UIView
查看>>
VIM7.3设置(for Windows)
查看>>
[bzoj 1143]最长反链二分图最大匹配
查看>>
SpringBoot(一)
查看>>
Azure Powershell script检测登陆并部署ARM Template
查看>>
SSO
查看>>
【LeetCode刷题系列 - 003题】Longest Substring Without Repeating Characters
查看>>
常用git命令
查看>>
深入了解HTTP协议、HTTP协议原则
查看>>
软件开发者最重要的四大技能(转)
查看>>
redis集群【转】
查看>>
get、put、post、delete含义与区别
查看>>
JS中innerHTML,innerText,value区别
查看>>
taglib.jsp
查看>>
Windows平台下使用Beyond Compare作为GIT默认的比对与合并工具
查看>>
Linux常用命令 (1)
查看>>
WinSCP命令行操作
查看>>
十分巧妙的 对话框组件 artDialog
查看>>