Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
102986 江梵睿 13投资金额II C++ Wrong Answer 1 MS 272 KB 452 2024-12-27 18:52:02

Tests(1/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 i,c,d; cin>>c>>d; for(i=c;i<=c+10;i++){ if(i%4==0){ d+=d*0.3; } else{ d+=d*0.2; } } cout<<d; return 0; }


Run Info:

------Input------
94 48
------Answer-----
405
------Your output-----
439