Wrong answer (5%)

Davidson Paiva asked 1 year ago


using namespace std;

int main() { int aux,n,a=0,medida; bool c=false; cin>>n; while (a<n){ aux=medida; cin>>medida; a++;

if (medida>aux){ c=true; } else c=false; } if (c==true) cout<<"1"<<endl; else if (c==false) cout<<"0"<<endl; return 0; }

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.