Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75420 sh25_shenpy 递归求等差数列第n项的值 C++ 通过 0 MS 252 KB 191 2025-12-06 16:04:51

Tests(3/3):


#include <bits/stdc++.h> using namespace std; int f(int n) { if(n==0) return 1; else return (1+2*n); } int main() { int n; cin>>n; cout<<f(n); return 0; }


测评信息: