0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 20:08:47 +00:00
Baoshuo Ren 2022-05-09 19:29:06 +08:00
parent f491e2fc25
commit af3743ba87
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

8
AcWing/84/84.cpp Normal file
View File

@ -0,0 +1,8 @@
class Solution {
public:
int getSum(int n) {
int r = n;
n && (r += getSum(n - 1));
return r;
}
};