Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69014 彭林江 13投资金额II C++ Wrong Answer 1 MS 268 KB 254 2024-03-30 11:21:30

Tests(0/10):


Code:

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


Run Info:

------Input------
55 12
------Answer-----
102
------Your output-----
84