Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82599 sh25_wanghy Pell数列 C++ 编译错误 0 MS 0 KB 265 2026-01-16 14:45:47

Tests(0/0):


#include<iostream> using namespace std; int pell(int k){ if(k<=2) return k; else return 2*pell(n-1)+pell(n-2); } int main(){ int n,m; cin>>n; for(int i=1;i<=n;++i){ cin>>m; cout<<pell(m)<<endl; } return 0; }


测评信息: