Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132299 何旻慧 13投资金额II C++ Wrong Answer 1 MS 268 KB 515 2025-10-07 19:35:58

Tests(0/10):


Code:

#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>>m>>n; int s=m; for(int i=1;i<=10;i++){ if((n+1)%400==0 || (n+1)%4==0 && (n+1)%100!=0) { m=s/5; s+=m; } else { m=s/10*3; s+=m; } } cout<<s; return 0; }


Run Info:

------Input------
55 12
------Answer-----
102
------Your output-----
715