Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
81301 sh25_zhuwy 递归求等差数列第n项的值 C++ 通过 0 MS 248 KB 191 2026-01-04 15:45:16

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; }


测评信息: