平均年龄
来源:互联网 发布:彩金双明牌算法 编辑:程序博客网 时间:2024/06/10 23:38
import java.util.Scanner;/** * Created by h on 16-12-27. */public class Solution { //w y x n public static void main(String[] args) { double w,y,x,n; Scanner in = new Scanner(System.in); while (in.hasNext()){ w = in.nextDouble(); y = in.nextDouble(); x = in.nextDouble(); n = in.nextDouble(); for(int i=1;i<=n;i++){ y = (1-x) * (y+1) + 21 * x; } System.out.println((int)Math.ceil(y)); } }}
0 0
- 平均年龄
- 平均年龄
- 平均年龄
- 平均年龄
- 1001 求平均年龄
- 平均年龄(公式)
- 01:求平均年龄
- 平均年龄(数学计算)
- 算法题 平均年龄
- CCF NOI1022 平均年龄
- 01:求平均年龄
- 1. 求平均年龄
- CFF 1022 平均年龄
- ACM java求平均年龄
- 题目1128:求平均年龄
- 题目1128:求平均年龄
- 题目1128:求平均年龄
- 题目1128:求平均年龄
- C/C++编程小练习 大数减法之浮点大数减法算法
- java thrift TSimpleServer TNonblockingServer THsHaServer TThreadedSelectorServer TThreadPoolServer比较
- IntentService
- UVa1404 & LA3998 Prime k-tuple
- WEB安全问题(未完)
- 平均年龄
- java静态代理和动态代理
- [UVA-10305]
- 拜访
- 构造函数的继承关系
- PE 145 How many reversible numbers are there below one-billion? (暴力)
- MyEclipse导入maven项目的两种方法
- centos7设置ip以及常用命令
- IIS环境