6 完全平方数相关


public class Wan {
    public static void main(String[] args) {
           for(long l=1L; l<100000; l++) {
            if(Math.sqrt((long)(l+100)) % 1 == 0) {
             if(Math.sqrt((long)(l+268)) % 1 == 0) {
              System.out.println(l + " ");
             }
            }
           }
        }
        }


 
21 
261 
1581 
原文地址:https://www.cnblogs.com/P201421420035/p/8665666.html