题目解题思路代码 题目类型:Math 解题思路 代码class Solution { public int arrangeCoins(int n) { return (int) ((Math.sqrt((long) 8 * n + 1) - 1) / 2); }}