Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
简单啊,一句话搞定#include <iostream.h> #include <math.h> void main() { int year,money,interest; cin>>interest>>money>>year; cout<<(int)( (double)money * pow((double)interest/100+1,year) ); } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator