阅读背景:

[个人记录]小白书学习2.4习题(算法竞赛入门经典第一版)

来源:互联网 
public class px {
	int i,j,k;
	public px(int a) {
		this.i=a/100;//百位
		this.j=a/10%10;//十位
		this.k=a%10;//个位
	}
	public int getI() {
		return i;
	}
	public int getJ() {
		return j;
	}
	public int getK() {
		return k;
	}
	public boolean istrue(int s1,int s2, int s3) {
		if(this.j!=0&&this.k!=0&&s2!=0&&s3!=0)
			if(this.i!=this.j && this.i!=this.k && this.j!=this.k)
				if(this.i!=s1&&this.i!=s2&&this.i!=s3)
					if(this.j!=s1&&this.j!=s2&&this.j!=s3)
						if(this.k!=s1&&this.k!=s2&&this.k!=s3)
								return true;
		return false;
	}
}
public class px {
	int i,j,k;
	public px(int a)



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: