18
22
23万
论坛元老
#include<bits/stdc++.h> using namespace std; int f1(int n) { if (n==1) return 1; else return n+f1(n-1); } int main() { int n; cin>>n; cout<<f1(n)<<endl; }
使用道具 举报
660
846
243万
管理员
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|DiscuzX
GMT+8, 2025-5-29 22:37 , Processed in 0.065535 second(s), 32 queries .
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.. 技术支持 by 巅峰设计