Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1784 杨洋杰 13投资金额II C++ Wrong Answer 0 MS 252 KB 267 2023-11-05 21:09:51

Tests(0/10):


Code:

#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; }


Run Info:

------Input------
94 48
------Answer-----
405
------Your output-----
312