Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
75762 | 陈昊然 | 13投资金额II | C++ | Accepted | 1 MS | 272 KB | 239 | 2024-05-28 19:46:43 |
#include <bits/stdc++.h> using namespace std; int main () { int a,e; cin>>e>>a; for(int i=0; i<=10; i++) { if(e%100!=0&&e%4==0||a%400==0) { a=a*1.3; } else { a=a*1.2; } e=e+1; } cout<<a; return 0; }