摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2832坑爹的精度损失。。。。orz。。。。View Code 1 #define _CRT_SECURE_NO_WARNINGS 2 #include<iostream> 3 #include<cstdio> 4 #include<cstring> 5 #include<cmath> 6 using namespace std; 7 8 9 int main(){10 double n;11 while(~scanf("%lf",& 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1302思路:直接按着题目意思模拟就行了。。。View Code 1 #define _CRT_SECURE_NO_WARNINGS 2 #include<iostream> 3 #include<cstdio> 4 #include<cmath> 5 using namespace std; 6 7 int main(){ 8 double h,u,d,f; 9 while(~scanf("%lf",&h)&&h){10 阅读全文