1 条题解
-
0
Java :
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner input=new Scanner(System.in); int amount=input.nextInt(); double interestrate=input.nextDouble(); int years=input.nextInt(); int value=(int) Math.round(amount*100*Math.pow(1+interestrate/1200, years*12)); System.out.println("Accumulated value is "+value/100.0); } }
- 1
信息
- ID
- 2947
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者