| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 162854 | 冉骏杰 | 13投资金额II | C++ | Accepted | 1 MS | 268 KB | 234 | 2026-10-21 20:56:32 |
#include<bits/stdc++.h> using namespace std; int n,m,l; int main(){ cin>>n>>m; l = 10+n; for(int i=n;i<=l;i++){ if(i%4==0&&i%100!=0||i%400 ==0){ m +=m*0.3; }else{ m +=m*0.2; } } cout <<m; return 0; }