Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5885 | 詹梓涵 | 13投资金额II | C++ | Wrong Answer | 0 MS | 260 KB | 326 | 2024-12-21 09:07:56 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ int n; double z; cin>>z>>n; for(int i=n;i<=n+10;i++){ if(i%400==0||(i%100!=0&&i%4==0)){ z=z*1.3; } else z=z*1.2; cout<<i<<":"<<z<<endl; } cout<<z<<endl; return 0; }
------Input------
94 48
------Answer-----
405
------Your output-----
48:122.2 49:146.64 50:175.968 51:211.162 52:274.51 53:329.412 54:395.295 55:474.353 56:616.659 57:739.991 58:887.99 887.99