同款错误简化版
下面是错误
#include
using namespace std;
int main()
{
int x,t;
int ture=1;
int right,left;
cin>> x;
t=x;
right=x%10;
x=x/10;
left=x%10;
x=x/10;
if(right<=left)
ture=0;
else
right=left;
for(i=1;i<=5;i++)
{
left=x%10;
x=x/10;
if(right<=left)
ture=0;
break;
else
right=left;
}
if(ture)
cout<<t;
return 0;
}