Source Code
#include <iostream>
using namespace std;
int main() {
  int n;
  cin>>n;
  int y=0;
  int arr[n];
  for( int i=0;i<n;i++){
    cin>>arr[i];
    
  }
  for( int i=0;i<n;i++){
    y=0;
    if(arr[i]<arr[i+1]){
      y++;
    }
    
  }
  if(y>0){
    cout<<"YES";
  }
  else{
    cout<<"NO";
  }
  return 0;
  }
Copy
Anton Can't See (⊙︿⊙)_/¯ dalia tamimi
GNU G++17
21 ms
988 KB
Wrong Answer