UVA - 10499 The Land of Justice
来源:互联网 发布:js判断数字是否为整数 编辑:程序博客网 时间:2024/05/16 15:23
题目大意:求一个球被从球心分成N份后,表面积增加了多少
解题思路:分成两份就增加50%,分成4份就增加100%,归纳可得,增加了n*25%
#include<cstdio>int main() {long long number;while(scanf("%lld", &number)) {if(number < 0)break;if(number <= 1)printf("0%%\n");elseprintf("%lld%%\n", 25 * number);}return 0;}
0 0
- 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
- 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
- POJ3114——Countries in War
- 生命的真谛?
- OpenProcess()函数
- 二分图的最大匹配 (匈牙利算法)
- 2014.10.6
- UVA - 10499 The Land of Justice
- 黑马程序员——Java基础——IO流笔记(FileInputStream和FileOutputStream使用示例)
- 我读经典(8):以独特的视角来看软件工程--读《构建之法:现代软件工程》有感
- poj3067(树状数组求逆序数)
- 【c++】内存偏移、成员函数和成员变量、static成员函数、变量
- linux脚本编程---ubuntu-12.04-server-amd64如何配置图形界面
- Git撤消操作
- Note of big data dummies:Integrating data types into a big data environment
- 图论500题