xxx

wangyukun 2020-09-17 18:36:11 2020-09-17 22:10:17 1
#include <bits/stdc++.h>
using namespace std;
int main(){
	for(int i=123;i<=987;i++){
		int y,x,a,b,c,a1,b1,c1,a2,b2,c2;
		x=i*2;
		y=i*3;
		a=i%10;
		b=i%100/10;
		c=i/100;
		a1=x%10;
		b1=x%100/10;
		c1=x/100;
		a2=y%10;
		b2=y%100/10;
		c2=y/100;
		if(x<1000&&y<1000){
		if(a!=0&&b!=0&&c!=0&&a1!=0&&b1!=0&&c1!=0&&a2!=0&&b2!=0&&c2!=0){
			if(a!=b&&a!=c&&a!=a1&&a!=b1&&a!=c1&&a!=a2&&a!=b2&&a!=c2){
				
			if(b!=c&&b!=a1&&b!=b1&&b!=c1&&b!=a2&&b!=b2&&b!=c2){
				
			if(c!=a1&&c!=b1&&c!=c1&&c!=a2&&c!=b2&&c!=c2){
				
			if(a1!=b1&&a1!=c1&&a1!=a2&&a1!=b2&&a1!=c2){
				
			if(b1!=c1&&b1!=a2&&b1!=b2&&b1!=c2){
				
			if(c1!=a2&&c1!=b2&&c1!=c2){
				
			if(a2!=b2&&a2!=c2){
			if(b2!=c2){
				cout<<i<<' '<<x<<' '<<y<<"\n";
			}
			}
			}
			}
			}
			}
			}
			}
		}
		}
	}
  	return 0;
}
{{ vote && vote.total.up }}

共 2 条回复

Herobrine 303

0.0

wangyukun

gg