Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
38186 jiabokai 求1+2+3+... C++ Accepted 0 MS 248 KB 193 2024-01-25 15:44:39

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int word[26]; int fax(int n){ if(n==0) return 0; else return n+fax(n-1); } int main() { int n; cin >>n; cout<<fax(n); return 0; }


Judgement Protocol: