竞赛
考级
#include<bits/stdc++.h> using namespace std; int a(int x){ if(x == 1) return 1; return a(x-1)+x; } int main(){ }
rose
来自互联网的疯子
#include <bits/stdc++.h> using namespace std; int qh(int n) { if(n==1) return 1; return n+qh(n-1); } int main(){ int n; cin>>n; cout<<qh(n)<<endl; return 0; }
Voldemort
共63条