public boolean checkSumOfSquareNumbers(int num){ int max = (int)Math.sqrt(num); for(int b=0; b<=max; b++){ double a=Math.sqrt(num-b*b); if(a%1==0){ return true; } } return false; }
51,410
社区成员
85,980
社区内容
加载中
试试用AI创作助手写篇文章吧