sgu 162
2015-04-25 13:27
281 查看
似乎没有什么好说的。。。
#include<map> #include<queue> #include<stack> #include<utility> #include<string> #include<cstdio> #include<cstdlib> #include<cstring> #include<ctime> #include<cmath> #include<iostream> #include<algorithm> #define pow2(x) ((x)*(x)) double a,b,c,d,e,f; double D,E,F,ans; int main() { #ifndef ONLINE_JUDGE freopen("sgu162.in","r",stdin); freopen("sgu162.out","w",stdout); #endif std::cin >> a >> b >> c >> f >> e >> d; D = pow2(b)+pow2(c)-pow2(d); E = pow2(a)+pow2(c)-pow2(e); F = pow2(a)+pow2(b)-pow2(f); ans = sqrt((long double)4*pow2(a)*pow2(b)*pow2(c)-pow2(a)*pow2(D)-pow2(b)*pow2(E)-pow2(c)*pow2(F)+D*E*F)/12; printf("%.4lf\n",ans);//std::cout << ans; #ifndef ONLINE_JUDGE fclose(stdin); fclose(stdout); #endif return 0; }
相关文章推荐
- sgu 162 分类: sgu 2015-04-25 13:27 39人阅读 评论(0) 收藏
- SGU 162.Pyramids
- SGU 162 - Pyramids(四面体体积公式)
- [SGU 286]Ancient decoration(二分图匹配)
- Sgu 104
- SGU 326 Perspective
- 二分图判断——sgu 172. eXam
- SGU 111 Very simple problem 翻译 题解
- sgu 193
- SGU 104 Little shop of flowers
- SGU 116 Index of super-prime
- [SGU102 Coprimes]
- [SGU280 Trade centers]
- SGU 135
- SGU 225 Little Knights
- SGU 298. King Berl VI
- SGU 326 Perspective
- [SGU]103. Traffic Lights
- SGU 131 Hardwood floor
- [SGU]108. Self-numbers II