摘要: 几何题,求圆锥体积差不多的题,难度不大,要注意的是杯子口半径R>=杯底半径r。下面是笔者的代码,AC了#include <stdio.h>#include <math.h>int main(){ int c; double r,R,H,V,t,P=acos(-1.0); scanf("%d",&c); while(c--) { scanf("%lf%lf%lf%lf",&r,&R,&H,&V); if(R==r) t=V/(R*R*P); else { t=H*... 阅读全文
posted @ 2013-02-12 21:58 SF-_- 阅读(162) 评论(0) 推荐(0) 编辑