UVA - 10499 the Land of Justice

来源:互联网 发布:ubuntu terminal 分屏 编辑:程序博客网 时间:2024/05/21 12:40

UVA - 10499 the Land of Justice

题目大意:将一个圆从中间开始切 (不是整个切开) 问切N刀后 增加的表面积倍率
解题思路:第一刀是切不开的 2刀是多了4个面 后面每刀 多 2面。

#include <cstdio>#include <cmath>int main() {    long long int N;    while (scanf("%lld", &N), N > 0) {        long long int s = 0;        if ( N > 1) {            s = 25*N;        }        printf("%lld%\n",s);    }}
0 0
原创粉丝点击