Run ID:5890

提交时间:2024-12-21 09:11:44

#include<iostream> using namespace std; int main(){//此题存在争议,10年后是有11年收益? double M; int Y; cin>>Y>>M; for(int i=Y;i<=Y+10;i++){ if(i%400==0||(i%100!=0&&i%4==0)){ M=M*1.3; } else M=M*1.2; //cout<<i<<":"<<M<<endl; } cout<<(int)M<<endl; return 0; }