有一个连通器,由两个漏斗组成,倒vol提及的水,问你连通器中水的高度是多少解法:先求出水面可以到达的最低和最高的高度,然后二分答案判断View Code #include<cstdio>#include<cstring>#include<cmath>#include<algorithm>using namespace std;const double eps = 1e-8;const int maxn = 1010;const double inf = 1000000000;int n,m;double vol,miny,maxy,ans;str Read More
posted @ 2012-04-21 17:26 Because Of You Views(338) Comments(0) Diggs(0)