赞
踩
class Solution { public: int integerBreak(int n) { if(n == 2) { return 1; } if(n == 3) { return 2; } int ans = 1; while(n > 4) { n -= 3; ans *= 3; } ans *= n; return ans; } };
之后我会持续更新,如果喜欢我的文章,请记得一键三连哦,点赞关注收藏,你的每一个赞每一份关注每一次收藏都将是我前进路上的无限动力 !!!↖(▔▽▔)↗感谢支持!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。