Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69017 邓嘉瑶 13投资金额II C++ Accepted 1 MS 276 KB 227 2024-03-30 11:22:59

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int Y,Z; cin>>Y>>Z; for(int i=Y; i<=Y+10; i++) { if(i%400==0||(i%4==0&&i%100!=0)) { Z=Z*1.3; } else { Z=Z*1.2; } } cout<<Z; return 0; }