Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language programming, design functions to calculate several different elements in plastic array (concise)
C language programming, design functions to calculate several different elements in plastic array (concise)
DEV-CPP 5.4 pure C language environment, passed the compilation test.

# include & ltstdio.h & gt

int? Fun (int? a[],const? int? n){

int? I,j,k,t = n;

for(I = 0; I & ltn;; i++){

for(k = 0; K< me; k++)? if(a[k]==a[i])? goto? sss

for(j = 0; j & ltn; j++){

if(j==i)? Continue;

if(a[i]==a[j]){

t-;

}

}

SSS:;

}

Return? t;

}

int? main(){

int? n,a[ 128],I;

scanf("%d ",& ampn);

for(I = 0; I & ltn;; i++)? scanf("%d ",& ampa[I]);

printf("%d ",fun(a,n));

Return? 0;

}