#include using namespace std; int judge1(int a) { int tmp = 10; while(a != 0) { if(tmp < a % 10) return 1; tmp = a % 10; a /= 10; } return 0; } int judge2(int a) { int tmp = 0; while(a != 0) { if(tmp > a % 10) return 1; tmp = a % 10; a /= 10; } return 0; } int main() { int nis = 0; int nnot = 100; int n = 100; while(nis != nnot * 99) { n += 1; if(judge1(n) * judge2(n) > 0) nis += 1; else nnot += 1; } cout << n << endl; return 0; }