机试题 abc

版权声明:感谢阅读,欢迎批评指正。 https://blog.csdn.net/skyejy/article/details/88803533

今日份AC。。。这种解法,算是很没有技术含量了……


public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		for(int a=0;a<=9;a++)
		{
			for(int b=0;b<=9;b++)
			{
				for(int c=0;c<=9;c++)
				{
					if(a*100+b*10+c+b*100+c*10+c==532)
					{
						System.out.println(a+" "+b+" "+c);
					}
				}
			}
		}
	}

}

猜你喜欢

转载自blog.csdn.net/skyejy/article/details/88803533
ABC