| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 75420 | sh25_shenpy | 递归求等差数列第n项的值 | C++ | Accepted | 0 MS | 252 KB | 191 | 2025-12-06 16:04:51 |
#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; }