Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5853 邓小龙 13投资金额II C++ Wrong Answer 0 MS 260 KB 312 2024-12-19 22:45:00

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ double M; int Y; cin>>Y>>M; for(int i=Y;i<=Y+10;i++){ if(i%400==0||(i%100!=0&&i%4==0)){ M=M*1.3; } else M=M*1.2; cout<<i<<":"<<M<<endl; } cout<<M<<endl; return 0; }


Run Info:

------Input------
94 48
------Answer-----
405
------Your output-----
94:57.6 95:69.12 96:89.856 97:107.827 98:129.393 99:155.271 100:186.325 101:223.59 102:268.309 103:321.97 104:418.561 418.561