public static void main(String[] args) { // int x, y; for (int i = 0; i < 100000; i++) { x = (int) Math.sqrt(i + 100); y = (int) Math.sqrt(i + 268); if (x * x == (i + 100) && y * y == (i + 268)) { System.out.println(i); } } }
public static void main(String[] args) { // int x, y; for (int i = 0; i < 100000; i++) { x = (int) Math.sqrt(i + 100); y = (int) Math.sqrt(i + 268); if (x * x == (i + 100) && y * y == (i + 268)) { System.out.println(i); } } }
转载于:https://www.cnblogs.com/taoist123/p/10136339.html