题解 | #求1+2+3+...+n#
求1+2+3+...+n
https://www.nowcoder.com/practice/7a0da8fc483247ff8800059e12d7caf1
class Solution { public: Solution() { count++; sum += count; } int Sum_Solution(int n) { Solution arr[n]; return sum; } static int count; static int sum; }; int Solution::count = -1; int Solution::sum = 0;