12345678910 public class Test { public static void main(String[] args){ for(int t=100; t<=999; t++){ int a=t/100, b=(t%100)/10, c=(t%100)%10; if(t==aaa+bbb+ccc){ System.out.println(t); } } }} 赞微海报分享
近期评论