#includeusing namespace std;unsigned int GetNotRepeatNum(unsigned int Value){ bool flag = true; unsigned int result = Value; while (flag) { result++; int figure = result % 10; int shang = result / 10; while (shang) { if ((shang % 10) ^ figure) { figure = shang % 10; shang /= 10; flag = false; } else { flag = true; break; } } } return result;}void main(){ cout << GetNotRepeatNum(1335) << endl; system("pause");}