Run ID:69014
提交时间:2024-03-30 11:21:30
#include<bits/stdc++.h> using namespace std; int main(){ int y, m; cin >> y >> m; for(int i= y+1; i <= y+10; i++){ if(i % 400 == 0 || (i % 4 == 0 && i % 100 != 0)){ m *=1.3; }else{ m*=1.2; } } cout << m; return 0; }