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

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


Run Info:

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