Source Code
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int N = 0, c = 0;
    scanf("%d", &N);
    int arr[N];
    for(int j = 1; j<=N; j++){
        scanf("%d", &arr[j]);
    }
    for(int i = 1; i < N; i++){
        if(arr[i] >= arr[i+1]){
            c = 1;
            printf("NO\n");
            break;
        }
    }
    if(c == 0){
        printf("YES\n");
    }
    return 0;
}
Copy
Anton Can't See (⊙︿⊙)_/¯ Qais Jildeh
GNU G++17
11 ms
1.1 MB
Accepted