#include<bits/stdc++.h>
using namespace std;
int ynum(int y){
int b[10]={0};
int t=y;
while(t){
if(b[t%10]) return 0;
else{
b[t%10]++;
t/=10;
}
}
return 1;
}
int main(){
int a;cin>>a;
a++;
while(1){
if(ynum(a)){
cout<<a;return 0;
}
else
a++;
}
return 0;
}
可以点个赞!!!
评论收藏加粉可以的打赏!!!!!!!!!!!!!!!!!!!