S001-AC.cc
266 Bytes
#include <iostream>
using namespace std;
bool is_increasing(int n)
{
if(!(n/10))
{
return true;
}
return ((n - (n/10)*10) >= (n/10 - (n/100)*10)) && is_increasing(n/10);
}
int main()
{
/*
int a;
cin >> a;
cout << is_increasing(a) << endl;
return 0;
*/
}