index
title: 求 date: 2019-08-21T11:00:41+08:00 draft: false categories: offer
题目
解题思路
public int Sum_Solution(int n) {
int ans = n;
boolean t = ((ans != 0) && ((ans += Sum_Solution(n - 1)) != 0));
return ans;
}Last updated