Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96834 | 只因你太美(Ikun 真爱粉) | 上台阶 | C++ | Wrong Answer | 1 MS | 276 KB | 461 | 2024-11-09 16:42:56 |
#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 mmm=0; int f(int n){ if(n<0)return 0; if(n==0)return 1; mmm+=f(n-3)+f(n-2)+f(n-1); } int main(){ int n; cin>>n; int m=0; f(n); cout<<mmm/2+1; return 0; }
------Input------
15
------Answer-----
5768
------Your output-----
27369