#include<bits/stdc++.h>using namespace std;int c=0;int a(int b){c=c+b;b&&a(b-1);return c;}int main(){int d;scanf("%d",&d);printf("%d",a(d));}
沒有不合題目吧(希望