Josif_tepe

Untitled

May 7th, 2026
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     int n;
  5.     scanf("%d", &n);
  6.    
  7.     int niza[n];
  8.     for(int i = 0; i < n; i++) {
  9.         scanf("%d", &niza[i]);
  10.     }
  11.    
  12.     int strogo_rastecka = 1;
  13.     for(int i = 1; i < n; i++) {
  14.         if(niza[i] <= niza[i - 1]) {
  15.             strogo_rastecka = 0;
  16.         }
  17.     }
  18.    
  19.     if(strogo_rastecka == 0) {
  20.         printf("NE\n");
  21.     }
  22.     else {
  23.         printf("DA\n");
  24.     }
  25.     return 0;
  26. }
  27.  
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment