SHARE
TWEET

Untitled

a guest Sep 19th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. void main(){
  4.     int n = 0,i = 0;
  5.     scanf("%d",&n);
  6.     int inputs[n];
  7.     for(i = 0 ; i < n ; i++){
  8.         scanf("%d",&inputs[i]);
  9.     }
  10.     for(i = 0 ; i < n-1 ; i++){
  11.         if(abs(inputs[i]-inputs[i+1]) > n){
  12.             printf("Not Jolly\n");
  13.             break;
  14.         }
  15.     }
  16.     printf("Jolly\n");
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top