Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
130060 林扬皓bylz 上楼梯 C++ 编译错误 0 0 MS 0 KB 246 2024-01-27 16:03:36

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main() { unsigned long long F[75]; F[0]=0; F[1]=1; F[2]=2; F[3]=4; for(int i=4; i<=73; i+=1) F[i]=F[i-3]+F[i-2]+F[i-1]; for(int n;cin>>n!=EOF;) cout<<F[n]<<endl; return 0; }


测评信息: