Run ID:2351
提交时间:2023-12-23 18:55:12
#include<iostream> #include<cmath> using namespace std; int main(){ int Y,M; cin>>Y>>M; for(int i=Y;i<=Y+9;i++){ if(i%400==0||i%4==0&&i%100!=0) M=M*1.3; else M=M*1.2; } cout<<M; return 0; }