Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157927 杨正蠔 13投资金额II C++ Accepted 1 MS 280 KB 497 2026-08-19 10:17:38

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 x,y,z; cin>>x>>y; z=x+10; for(int i=x;i<=z;i++){ if (i%4==0 && i%100!=0 || i%400==0){ y+=y*0.3; } else{ y+=y*0.2; } } cout<<y; return 0; }