Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
86503 | 高楷伦 | 13投资金额II | C++ | Accepted | 1 MS | 272 KB | 328 | 2024-07-25 18:17:17 |
# include<iostream> # include<cstdio> # include<iomanip> # include<cmath> using namespace std; int main(){ int oct,max; cin>>max>>oct; for(int i=max;i<=max+10;i++){ if((i%4==0&&i%100!=0)||i%400==0){ oct=oct*0.3+oct; } else{ oct=oct*0.2+oct; } } cout<<oct; return 0; }