UVA10499- The Land of Justice
来源:互联网 发布:马鞍山网络招聘网 编辑:程序博客网 时间:2024/06/05 18:32
题意:一个球体,将其分为n等分,求分完之后比原先的表面积增加多少百分比
思路:球体表面及为4*pi*r*r,每多分一等分就多增加pi * r * r,所以最后的公式是25 * n;
#include<stdio.h>int main() {double n;while (scanf("%lf", &n) && (n > 0)) {if (n == 1)printf("0%\n");elseprintf("%.0lf%%\n", 25 * n);}return 0;}
- UVA10499- The Land of Justice
- UVA10499 The Land of Justice
- The Land of Justice
- The Land of Justice
- The Land of Justice
- 10499 - The Land of Justice
- 10499 - The Land of Justice
- 10499 - The Land of Justice
- 10499 - The Land of Justice
- UVa_10499 - The Land of Justice
- uva 10499 - The Land of Justice
- uva-10499 - The Land of Justice
- UVa 10499 - The Land of Justice
- UVa 10499 - The Land of Justice
- UVA 10499 The Land of Justice
- uva 10499 - The Land of Justice
- uva 10499 The Land of Justice
- UVA 10499 The Land of Justice
- JSP内置对象(9个常用的内置对象)
- gets() getline() scanf() cin
- Parcelable接口的使用
- Maya: 菜单 编辑网格 >合并
- NYOJ 278题 排队
- UVA10499- The Land of Justice
- 如何避免成为僵尸进程
- 【HDOJ】1205 -> 吃糖果
- Maya: 菜单 编辑网格 >合并到中心
- 导航电子地图数据格式概论
- 基于AT89C52时钟闹钟(红外遥控作为输入设备)2013.8.9
- 正则表达式中模式修正符作用详解(i、g、m、s、x、e)
- MyEclipse 5.5 GA 注册码
- Maya: 菜单 编辑网格 >收拢