public class Main { public static void main(String[] args) { for (int i = 1000; i < 10000; i++) { if ((i/1000)==(i%10)&&(i/100%10)==(i/10%10)) { System.out.println(i); } } } }
原文地址:https://www.cnblogs.com/wzqjy/p/8280594.html
时间: 2024-10-15 03:06:02