Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5893 | 詹梓涵 | 13投资金额II | C++ | Wrong Answer | 0 MS | 260 KB | 315 | 2024-12-21 09:12:37 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ int n,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-----
879