U E D R , A S I H C RSS

JollyJumpers/정진경 (rev. 1.1)

Jolly Jumpers/정진경

Describe JollyJumpers/정진경 here


Source Code

n,a,b,k,c[3000];main(){for(;scanf("%d%d",&n,&a)+1;puts(k-1?"Not jolly":"Jolly"))for(memset(c,0,n*4),k=n;--n;a=b){scanf("%d",&b);a=abs(a-b);if(!c[a])c[a]=1,k--;}}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:34
Processing time 0.0166 sec