代码如下:
public int Sum_Solution(int n) {
int temp = n;
boolean b = (temp>0)&&(temp += Sum_Solution(n-1))>0;
return temp;
}
2023-10-06 14:52:10
代码如下:
public int Sum_Solution(int n) {
int temp = n;
boolean b = (temp>0)&&(temp += Sum_Solution(n-1))>0;
return temp;
}