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("\nNO\n");
            break;
        }
    }
    if(c == 0){
        printf("\nYES\n");
    }
    return 0;
}
Copy
Anton Can't See (⊙︿⊙)_/¯ Qais Jildeh
GNU G++17
2 ms
232 KB
Wrong Answer