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