Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83119 sh25_shengmy Pell数列-递归 C++ 解答错误 0 MS 248 KB 206 2026-01-22 20:55:51

Tests(0/1):


#include<iostream> using namespace std; int pell(int n){ if(n<3) return n; else return 2*pell(n-1)+pell(n-2); } int main(){ int k; cin>>k; cout<<pell(k)%32767; return 0; }


测评信息: