摘要: #include<bits/stdc++.h> using namespace std; int f(int n) { if(n==1) return 1; else return f(n-1)+n; } int main() { int a; cin>>a; cout<<f(a)<<endl; r 阅读全文
posted @ 2023-05-16 15:39 记得关月亮 阅读(11) 评论(0) 推荐(0)