Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5731 | 谢锦卓 | 13投资金额II | C++ | Wrong Answer | 4 MS | 264 KB | 320 | 2024-12-14 10:56:29 |
#include<iostream> // cin\cout\endl using namespace std; int main(){ int n,y,z; cin>>n>>y; for(int i=1;i<=n;i++){ if(y%100==0&&y%400==0||y%100!=0&&y%4==0){ z=1.3; } else{ z=1.2; } n=n*z; } cout<<n<<endl; return 0; }
------Input------
94 48
------Answer-----
405
------Your output-----
94