| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132304 | 何旻慧 | 13投资金额II | C++ | Wrong Answer | 1 MS | 268 KB | 513 | 2025-10-07 19:38:41 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int m,n; cin>>n>>m; int s=m; for(int i=1;i<=10;i++){ if((n+i)%400==0 || (n+i)%4==0 && (n+i)%100!=0) { m=s/10*3; s+=m; } else { m=s/5; s+=m; } } cout<<s; return 0; }
------Input------
55 12
------Answer-----
102
------Your output-----
80