#include using namespace std; int main(){ int X,Y; int ansnum=0; int ansarray[4]; for(int i=0;i<=9;i++){ cout<>X>>Y; for(int j=0;j>X>>Y; if(X==4) break; while(1){ a++; int a1=a%10,a2=a/10%10,a3=a/100%10,a4=a/1000%10; if(a1<=3&&a2<=3&&a3<=3&&a4<=3&&a1!=a2&&a1!=a3&&a1!=a4&&a2!=a3&&a2!=a4&&a3!=a4) break; if(a>10000) break; } if(a>10000) break; } }