1117 人口问题

来源:互联网 发布:广州丽晶软件 编辑:程序博客网 时间:2024/04/19 13:12
#include<iostream>#include<math.h>using namespace std;int main(){double n,m;int t=0;cin>>n;m=45;while(m<n){m*=1.01;t++;}cout<<t+1980<<endl;return 0;}