Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131933 李茗宇 13投资金额II C++ Accepted 1 MS 276 KB 484 2025-10-01 20:00:34

Tests(10/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 k,i,n,m,s=0,y; cin>>y>>m; for(int k=y;k<=y+10;k++){ if(k%4==0&&k%100!=0||k%400==0){ m=m*1.3; } else{ m=m*1.2; } } cout<<m; return 0; }